mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- fixed A_CheckTerrain's check for instant death sectors.
This was still checking the sector special even though this had been reactored 5 years ago.
This commit is contained in:
parent
ebbc94280e
commit
5077973012
1 changed files with 1 additions and 1 deletions
|
@ -4920,7 +4920,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_CheckTerrain)
|
|||
|
||||
if (self->Z() == sec->floorplane.ZatPoint(self) && sec->PortalBlocksMovement(sector_t::floor))
|
||||
{
|
||||
if (sec->special == Damage_InstantDeath)
|
||||
if (sec->damageamount >= TELEFRAG_DAMAGE)
|
||||
{
|
||||
P_DamageMobj(self, NULL, NULL, 999, NAME_InstantDeath);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue