(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:
parent
96e380e909
commit
ab509c22ef
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ guerrilla(struct sctstr *sp)
|
||||||
n = civ / 20;
|
n = civ / 20;
|
||||||
civ -= n;
|
civ -= n;
|
||||||
if (civ > ITEM_MAX) {
|
if (civ > ITEM_MAX) {
|
||||||
uw = ITEM_MAX - civ;
|
uw = civ - ITEM_MAX;
|
||||||
civ = ITEM_MAX;
|
civ = ITEM_MAX;
|
||||||
}
|
}
|
||||||
sp->sct_item[I_CIVIL] = civ;
|
sp->sct_item[I_CIVIL] = civ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue