(nav_ship): Await fish only in water, not just any unowned sector.

This commit is contained in:
Ron Koenderink 2007-11-22 03:46:23 +00:00
parent 87eab4e63a
commit 6597f8a7d6

View file

@ -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. */