(carg, lcarg, fort, land, ldump, lsta, orde, payo, retr, lretr)
(cmd_sail_ship, cmd_unsail_ship, show_sail, sdump, shi, sstat, work): Remove inappropriate ship/land sanity checks; should be done elsewhere.
This commit is contained in:
parent
a7aea6c468
commit
190cbaadf2
13 changed files with 0 additions and 69 deletions
|
@ -137,10 +137,6 @@ retr(void)
|
|||
while (nxtitem(&ni, &ship)) {
|
||||
if (!player->owner || ship.shp_own == 0)
|
||||
continue;
|
||||
if (ship.shp_type < 0 || ship.shp_type > shp_maxno) {
|
||||
pr("bad ship type %d (#%d)\n", ship.shp_type, ni.cur);
|
||||
continue;
|
||||
}
|
||||
if (zero)
|
||||
memset(ship.shp_rpath, 0, sizeof(ship.shp_rpath));
|
||||
|
||||
|
@ -268,10 +264,6 @@ lretr(void)
|
|||
while (nxtitem(&ni, &land)) {
|
||||
if (!player->owner || land.lnd_own == 0)
|
||||
continue;
|
||||
if (land.lnd_type < 0 || land.lnd_type > lnd_maxno) {
|
||||
pr("bad unit type %d (#%d)\n", land.lnd_type, ni.cur);
|
||||
continue;
|
||||
}
|
||||
if (zero)
|
||||
memset(land.lnd_rpath, 0, sizeof(land.lnd_rpath));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue