(guerrilla): Fix saturation of civilians (new in rev. 1.9). It

created anti-uw, which made the next checksect() oops.
This commit is contained in:
Markus Armbruster 2005-03-19 15:57:41 +00:00
parent 96e380e909
commit ab509c22ef

View file

@ -341,7 +341,7 @@ guerrilla(struct sctstr *sp)
n = civ / 20;
civ -= n;
if (civ > ITEM_MAX) {
uw = ITEM_MAX - civ;
uw = civ - ITEM_MAX;
civ = ITEM_MAX;
}
sp->sct_item[I_CIVIL] = civ;