mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +00:00
- Fixed division by zero when damageinterval was not specified from ZScript.
This commit is contained in:
parent
d3b5e952ba
commit
cf083f5b56
1 changed files with 3 additions and 0 deletions
|
@ -457,6 +457,9 @@ void P_PlayerInSpecialSector (player_t *player, sector_t * sector)
|
|||
// Has hit ground.
|
||||
AActor *ironfeet;
|
||||
|
||||
if (sector->damageinterval == 0)
|
||||
sector->damageinterval = 32;
|
||||
|
||||
// [RH] Apply any customizable damage
|
||||
if (sector->damageamount > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue