Get rid of the need to fix up lchr[].

Mil are not required for building units since 4.0.0.  l_mil was still
initialized to l_item[I_MILIT], and used instead of that in a couple
of places.  Fix those, and remove the initialization.
This commit is contained in:
Markus Armbruster 2008-02-04 21:38:38 +01:00
parent 91eefc3f3a
commit 3290e87576
4 changed files with 6 additions and 20 deletions

View file

@ -478,7 +478,7 @@ take_casualties(struct sctstr *sp, int mc)
lp->lnd_effic -= deq;
lp->lnd_mobil -= deq / 2;
deq = lchr[(int)lp->lnd_type].l_mil * (deq / 100.0);
deq = lchr[(int)lp->lnd_type].l_item[I_MILIT] * (deq / 100.0);
lnd_submil(lp, deq);
if (mc <= 0)
return;
@ -503,7 +503,7 @@ take_casualties(struct sctstr *sp, int mc)
lp->lnd_effic -= deq;
lp->lnd_mobil -= deq / 2;
deq = lchr[(int)lp->lnd_type].l_mil * (deq / 100.0);
deq = lchr[(int)lp->lnd_type].l_item[I_MILIT] * (deq / 100.0);
lnd_submil(lp, deq);
if (mc <= 0)
return;