mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-20 16:31:03 +00:00
Prevent A_LobShot from dividing by 0
This commit is contained in:
parent
96bfd8cea7
commit
207053a023
1 changed files with 1 additions and 1 deletions
|
@ -2671,7 +2671,7 @@ void A_LobShot(mobj_t *actor)
|
|||
fixed_t z;
|
||||
fixed_t dist;
|
||||
fixed_t vertical, horizontal;
|
||||
fixed_t airtime = var2 & 65535;
|
||||
fixed_t airtime = max(1, var2 & 65535);
|
||||
|
||||
if (LUA_CallAction(A_LOBSHOT, actor))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue