]> git.pond.sub.org Git - empserver/commitdiff
(nav_ship): Await fish only in water, not just any unowned sector.
authorRon Koenderink <rkoenderink@yahoo.ca>
Thu, 22 Nov 2007 03:46:23 +0000 (03:46 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Thu, 22 Nov 2007 03:46:23 +0000 (03:46 +0000)
src/lib/update/nav_ship.c

index f867513bc3b046c2363e85b9d01c1f8dd772d691..3d2e8b70d6b79e62df9d360ea37ced7dc4cb81ca 100644 (file)
@@ -317,7 +317,7 @@ nav_ship(struct shpstr *sp)
            max_amt = vship->m_item[I_FOOD];
            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;
        }
        /* reset flag and check if we can move. */