mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +00:00
- change recent /0 fix to conform to UDMF specs
# Conflicts: # src/playsim/p_spec.cpp
This commit is contained in:
parent
ee94d3b627
commit
de2d564c98
2 changed files with 4 additions and 2 deletions
|
@ -457,8 +457,8 @@ void P_PlayerInSpecialSector (player_t *player, sector_t * sector)
|
|||
// Has hit ground.
|
||||
AActor *ironfeet;
|
||||
|
||||
if (sector->damageinterval == 0)
|
||||
sector->damageinterval = 32;
|
||||
if (sector->damageinterval <= 0)
|
||||
sector->damageinterval = 32; // repair invalid damageinterval values
|
||||
|
||||
// [RH] Apply any customizable damage
|
||||
if (sector->damageamount > 0)
|
||||
|
|
|
@ -1648,6 +1648,8 @@ class PlayerPawn : Actor
|
|||
if (player.hazardcount)
|
||||
{
|
||||
player.hazardcount--;
|
||||
if (player.hazardinterval <= 0)
|
||||
player.hazardinterval = 32; // repair invalid hazardinterval
|
||||
if (!(Level.maptime % player.hazardinterval) && player.hazardcount > 16*TICRATE)
|
||||
player.mo.DamageMobj (NULL, NULL, 5, player.hazardtype);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue