From b6e40305df71417d2230b3712846870f05c8dc99 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 26 Apr 2006 16:54:29 +0000 Subject: [PATCH] (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. --- src/lib/update/revolt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/update/revolt.c b/src/lib/update/revolt.c index 82dc2133..d35e0cb8 100644 --- a/src/lib/update/revolt.c +++ b/src/lib/update/revolt.c @@ -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) {