(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

@ -193,8 +193,7 @@ nav_loadship(struct shpstr *sp, natid cnum)
didsomething[i] = 1;
continue;
}
if (sectp->sct_type != SCT_HARBR &&
!IS_BIG_CITY(sectp->sct_type)) {
if (!sect_has_dock(sectp)) {
/* we can only load in harbors */
didsomething[i] = 1;
continue;