(sect_has_dock): New.

(fuel, load, nav_loadship): Use it.
This commit is contained in:
Ron Koenderink 2006-01-17 23:38:51 +00:00
parent 80be15204b
commit 14d94c2509
5 changed files with 16 additions and 8 deletions

View file

@ -134,8 +134,7 @@ fuel(void)
mp = &mchr[(int)item.ship.shp_type];
harbor = 0;
if (sect.sct_type == SCT_HARBR
|| IS_BIG_CITY(sect.sct_type)) {
if (sect_has_dock(&sect)) {
harbor = 1;
oil_amt = sect.sct_item[I_OIL];
pet_amt = sect.sct_item[I_PETROL];