- Fixed division by zero when damageinterval was not specified from ZScript.

This commit is contained in:
drfrag 2020-06-25 13:44:34 +02:00
parent d3b5e952ba
commit cf083f5b56

View file

@ -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)
{