Only find wood on explored tiles
This commit is contained in:
parent
c3d94cec65
commit
36bd25a00c
1 changed files with 1 additions and 1 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue