(lnd_sweep, lnd_mar_one_sector): Automatic fortification on excess
mobility may fortify units while they are `at the march prompt'. That's okay. But action that consumes mobility must zap the fortification again.
This commit is contained in:
parent
bf50c6e851
commit
dc9a19b324
1 changed files with 2 additions and 0 deletions
|
@ -713,6 +713,7 @@ lnd_sweep(struct emp_qelem *land_list, int verbose, int takemob,
|
||||||
techfact(llp->land.lnd_tech, mobcost));
|
techfact(llp->land.lnd_tech, mobcost));
|
||||||
llp->mobil -= mobcost;
|
llp->mobil -= mobcost;
|
||||||
llp->land.lnd_mobil = (int)llp->mobil;
|
llp->land.lnd_mobil = (int)llp->mobil;
|
||||||
|
llp->land.lnd_harden = 0;
|
||||||
}
|
}
|
||||||
putland(llp->land.lnd_uid, &llp->land);
|
putland(llp->land.lnd_uid, &llp->land);
|
||||||
if (!(mines = getvar(V_MINE, (s_char *)§, EF_SECTOR)))
|
if (!(mines = getvar(V_MINE, (s_char *)§, EF_SECTOR)))
|
||||||
|
@ -1183,6 +1184,7 @@ lnd_mar_one_sector(struct emp_qelem *list, int dir, natid actor,
|
||||||
llp->mobil -= lnd_mobcost(&llp->land, §, MOB_ROAD);
|
llp->mobil -= lnd_mobcost(&llp->land, §, MOB_ROAD);
|
||||||
}
|
}
|
||||||
llp->land.lnd_mobil = (int)llp->mobil;
|
llp->land.lnd_mobil = (int)llp->mobil;
|
||||||
|
llp->land.lnd_harden = 0;
|
||||||
putland(llp->land.lnd_uid, &llp->land);
|
putland(llp->land.lnd_uid, &llp->land);
|
||||||
putsect(&osect);
|
putsect(&osect);
|
||||||
getsect(osect.sct_x, osect.sct_y, &osect);
|
getsect(osect.sct_x, osect.sct_y, &osect);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue