continue;
if ((player->cnum != ship.shp_own) && !player->god)
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 (nships++ == 0)
pr("shp# ship type x,y flt eff sh gun pet irn dst bar oil lcm hcm rad\n");
pr("%4d ", ni.cur);
continue;
if ((player->cnum != land.lnd_own) && !player->god)
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 (nunits++ == 0)
pr("lnd# unit type x,y a eff sh gun pet irn dst bar oil lcm hcm rad\n");
pr("%4d ", ni.cur);
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;
- }
-
getland(land.lnd_uid, &land);
if (land.lnd_mobil < 0)
continue;
continue;
if (!player->owner && !player->god)
continue;
- if (land.lnd_type < 0 || land.lnd_type > lnd_maxno) {
- pr("bad unit type %d (#%d)\n", land.lnd_type, ni.cur);
- continue;
- }
count_land_planes(&land);
lnd_count_units(&land);
continue;
if (!player->owner && !player->god)
continue;
- if (land.lnd_type < 0 || land.lnd_type > lnd_maxno) {
- pr("bad unit type %d (#%d)\n", land.lnd_type, ni.cur);
- continue;
- }
count_land_planes(&land);
lnd_count_units(&land);
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;
- }
count_land_planes(&land);
if (nunits++ == 0) {
while (!player->aborted && nxtitem(&nb, (&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, nb.cur);
- continue;
- }
if (opt_SAIL) {
if (*ship.shp_path) {
if (!diffeachship)
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;
- }
mp = &mchr[(int)ship.shp_type];
if (!(mp->m_flags & M_TRADE))
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));
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));
while (nxtitem(nstr, &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, nstr->cur);
- continue;
- }
if (count++ == 0) {
if (player->god)
pr("own ");
while (nxtitem(nstr, &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, nstr->cur);
- continue;
- }
if (ship.shp_path[0]) {
pr("Ship #%d unsailed\n", ship.shp_uid);
count++;
while (!player->aborted && nxtitem(nstr, &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, nstr->cur);
- continue;
- }
if ((ship.shp_autonav & AN_AUTONAV) &&
!(ship.shp_autonav & AN_STANDBY)) {
pr("Ship #%d has other orders!\n", ship.shp_uid);
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;
- }
count_planes(&ship);
count_units(&ship);
nships++;
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;
- }
count_planes(&ship);
count_units(&ship);
if (nships++ == 0) {
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;
- }
count_planes(&ship);
count_units(&ship);
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 (!(lchr[(int)land.lnd_type].l_flags & L_ENGINEER))
continue;
if (land.lnd_mobil <= 0) {