(load): Fix misleading message that assumed that only SCT_CAPIT

sectors can be canals.
This commit is contained in:
Markus Armbruster 2007-10-27 16:13:50 +00:00
parent 588c5b12d5
commit 041c71de80

View file

@ -145,11 +145,8 @@ load(void)
}
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),
dchr[SCT_CAPIT].d_nav == NAV_CANAL ? " or a " : "",
dchr[SCT_CAPIT].d_nav == NAV_CANAL ?
dchr[SCT_CAPIT].d_name : "");
pr("Sector %s is not a harbor or canal.\n",
xyas(ship.shp_x, ship.shp_y, player->cnum));
continue;
}
if (sect.sct_own != player->cnum && load_unload == UNLOAD