From dc9a19b3242339d05fb0773af1d8a3f5c6503298 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 28 Jan 2004 19:02:29 +0000 Subject: [PATCH] (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. --- src/lib/subs/lndsub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/subs/lndsub.c b/src/lib/subs/lndsub.c index 8799864c..13f71a66 100644 --- a/src/lib/subs/lndsub.c +++ b/src/lib/subs/lndsub.c @@ -713,6 +713,7 @@ lnd_sweep(struct emp_qelem *land_list, int verbose, int takemob, techfact(llp->land.lnd_tech, mobcost)); llp->mobil -= mobcost; llp->land.lnd_mobil = (int)llp->mobil; + llp->land.lnd_harden = 0; } putland(llp->land.lnd_uid, &llp->land); 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->land.lnd_mobil = (int)llp->mobil; + llp->land.lnd_harden = 0; putland(llp->land.lnd_uid, &llp->land); putsect(&osect); getsect(osect.sct_x, osect.sct_y, &osect);