int shells;
double mobcost;
struct mchrstr *mcp;
- int time_to_stop;
int changed;
sp->shp_mission = 0;
n = (-1 * MAX_RETREAT);
stopping = 0;
- time_to_stop = 0;
while (!stopping && n) {
dx = dy = 0;
if (sp->shp_rpath[0] == 0) {
writemap(sp->shp_own);
sect.sct_mines = mines;
putsect(§);
- if (sp->shp_effic < SHIP_MINEFF)
- time_to_stop = 1;
if (!orig)
putship(sp->shp_uid, sp);
return 0;
}
- if (time_to_stop)
- stopping = 1;
}
if (orig) {
int shells;
double mobcost;
struct lchrstr *lcp;
- int time_to_stop;
lp->lnd_mission = 0;
if (lp->lnd_own == 0)
n = (-1 * MAX_RETREAT);
stopping = 0;
- time_to_stop = 0;
while (!stopping && n) {
dx = dy = 0;
if (lp->lnd_rpath[0] == 0) {
mines--;
sect.sct_mines = mines;
putsect(§);
- if (lp->lnd_effic < LAND_MINEFF)
- time_to_stop = 1;
if (!orig)
putland(lp->lnd_uid, lp);
return 0;
}
- if (time_to_stop)
- stopping = 1;
}
if (orig) {