mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-10 15:22:20 +00:00
denom of A_CheckRandom can't be zero, that would be bad
This commit is contained in:
parent
caf081b6f5
commit
9cec9093bb
1 changed files with 3 additions and 0 deletions
|
@ -8528,6 +8528,9 @@ void A_CheckRandom(mobj_t *actor)
|
|||
if (LUA_CallAction("A_CheckRandom", actor))
|
||||
return;
|
||||
#endif
|
||||
if ((locvar1 & 0xFFFF) == 0)
|
||||
return;
|
||||
|
||||
// The PRNG doesn't suck anymore, OK?
|
||||
if (locvar1 >> 16)
|
||||
chance *= (locvar1 >> 16);
|
||||
|
|
Loading…
Reference in a new issue