(sect_has_dock): New.
(fuel, load, nav_loadship): Use it.
This commit is contained in:
parent
80be15204b
commit
14d94c2509
5 changed files with 16 additions and 8 deletions
|
@ -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(§)) {
|
||||
harbor = 1;
|
||||
oil_amt = sect.sct_item[I_OIL];
|
||||
pet_amt = sect.sct_item[I_PETROL];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue