int supplied;
};
+enum {
+ LND_AIROPS_EFF = 50 /* min. efficiency for air ops */
+};
+
/* src/lib/subs/lndsub.c */
extern void lnd_sweep(struct emp_qelem *, int, int, natid);
extern int lnd_interdict(struct emp_qelem *, coord, coord, natid);
#define CN_ERROR (-1)
enum {
+ SHP_AIROPS_EFF = 50, /* min. efficiency for air ops */
M_TORP_SHELLS = 3 /* number of shells used by a torpedo */
};
if (ship.shp_effic < SHIP_MINEFF) {
goto shipsunk;
}
- /* Can't fly off of ships < 50%, or non-owned or non-allied ships */
- if ((ship.shp_effic < 50) ||
+ /* Can't fly off of inefficient or non-owned, non-allied ships */
+ if ((ship.shp_effic < SHP_AIROPS_EFF) ||
((ship.shp_own != pp->pln_own) &&
(getrel(getnatp(ship.shp_own), pp->pln_own) != ALLIED))) {
emp_remque(qp);
if (land.lnd_effic < LAND_MINEFF)
goto landdead;
- /* Can't fly off of units < 50%, or non-owned or non-allied units */
- if ((land.lnd_effic < 50) ||
+ /* Can't fly off of inefficient or non-owned, non-allied units */
+ if ((land.lnd_effic < LND_AIROPS_EFF) ||
((land.lnd_own != pp->pln_own) &&
(getrel(getnatp(land.lnd_own), pp->pln_own) != ALLIED))) {
emp_remque(qp);
goto shipsunk;
if (ship.shp_effic < SHIP_MINEFF)
goto shipsunk;
- if (ship.shp_effic < 50)
+ if (ship.shp_effic < SHP_AIROPS_EFF)
continue;
/* Can't fly off non-owned ships or non-allied ship */
if ((ship.shp_own != player->cnum) &&
goto landdead;
if (land.lnd_effic < LAND_MINEFF)
goto landdead;
- if (land.lnd_effic < 50)
+ if (land.lnd_effic < LND_AIROPS_EFF)
continue;
/* Can't fly off units in ships or other units */
if ((land.lnd_ship >= 0) || (land.lnd_land >= 0))