Only find wood on explored tiles

This commit is contained in:
jsalmon3 2003-01-07 23:20:25 +00:00
parent c3d94cec65
commit 36bd25a00c

View file

@ -2732,7 +2732,7 @@ global int FindWoodInSight(const Unit* unit,int* px,int* py)
//
// Look if there is wood
//
if ( ForestOnMap(x,y) ) {
if ( ForestOnMap(x,y) && IsMapFieldExplored(x,y) ) {
if( destu ) {
n=max(abs(destx-x),abs(desty-y));
if( n<bestd ) {