(guerrilla): Round security unit raid value below one to zero instead

of one.  Before, an empty, inefficient unit could be used to kill one
rebel per update.
This commit is contained in:
Markus Armbruster 2006-04-26 16:54:29 +00:00
parent 6de081a384
commit b6e40305df

View file

@ -185,9 +185,7 @@ guerrilla(struct sctstr *sp)
lcp = &lchr[(int)lp->lnd_type];
mil += lnd_getmil(lp);
r = (lnd_getmil(lp) * lp->lnd_effic) / 500;
if (r < 1)
r = 1;
che_kill = roll(r);
che_kill = r < 1 ? 0 : roll(r);
if (che_kill > che)
che_kill = che;
if (che_kill) {