(deli, do_demo, lnd_sweep, guerrilla): Saturate items at ITEM_MAX.
With variables, item increases beyond the capacity of variables (65535) were ignored here. This should cover all item changes not going through putvec().
This commit is contained in:
parent
95ef2b139d
commit
58e93c0ea3
4 changed files with 10 additions and 4 deletions
|
@ -101,7 +101,8 @@ deli(void)
|
|||
if (!check_sect_ok(§))
|
||||
continue;
|
||||
|
||||
del = thresh + dir;
|
||||
thresh = min(thresh, ITEM_MAX) & ~7;
|
||||
del = thresh | dir;
|
||||
sect.sct_del[ich->i_vtype] = del;
|
||||
putsect(§);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue