(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

@ -139,8 +139,7 @@ load(void)
(ship.shp_own != player->cnum))
continue;
if (!player->owner &&
sect.sct_type != SCT_HARBR &&
!IS_BIG_CITY(sect.sct_type))
!sect_has_dock(&sect))
continue;
if (!sect.sct_own)
continue;
@ -150,8 +149,7 @@ load(void)
xyas(ship.shp_x, ship.shp_y, player->cnum));
continue;
}
if (sect.sct_type != SCT_HARBR &&
!IS_BIG_CITY(sect.sct_type)) {
if (!sect_has_dock(&sect)) {
if (noisy)
pr("Sector %s is not a harbor%s%s.\n",
xyas(ship.shp_x, ship.shp_y, player->cnum),