struct nstr_item ni;
struct shpstr ship;
+ if (CANT_HAPPEN(!sp->shp_own))
+ return;
+
retreat_ship1(sp, code, 1);
if (sp->shp_rpath[0] == 0)
sp->shp_rflags = 0;
struct mchrstr *mcp;
int changed;
- if (sp->shp_own == 0)
- return 0;
-
if (sp->shp_effic < SHIP_MINEFF) {
wu(0, sp->shp_own,
"%s %s,\nbut it died in the attack, and so couldn't retreat!\n",
struct nstr_item ni;
struct lndstr land;
+ if (CANT_HAPPEN(!lp->lnd_own))
+ return;
+
retreat_land1(lp, code, 1);
if (lp->lnd_rpath[0] == 0)
lp->lnd_rflags = 0;
double mobcost;
struct lchrstr *lcp;
- if (lp->lnd_own == 0)
- return 0;
-
if (lp->lnd_effic < LAND_MINEFF) {
wu(0, lp->lnd_own,
"%s %s,\nbut it died in the attack, and so couldn't retreat!\n",