(nav_ship): Await fish only in water, not just any unowned sector.
This commit is contained in:
parent
87eab4e63a
commit
6597f8a7d6
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ nav_ship(struct shpstr *sp)
|
||||||
max_amt = vship->m_item[I_FOOD];
|
max_amt = vship->m_item[I_FOOD];
|
||||||
sectp = getsectp(sp->shp_x, sp->shp_y);
|
sectp = getsectp(sp->shp_x, sp->shp_y);
|
||||||
|
|
||||||
if (food_amt < max_amt && (sectp->sct_own == 0))
|
if (food_amt < max_amt && (sectp->sct_type == SCT_WATER))
|
||||||
quit = 0;
|
quit = 0;
|
||||||
}
|
}
|
||||||
/* reset flag and check if we can move. */
|
/* reset flag and check if we can move. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue