- 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:
Christoph Oelckers 2021-05-17 12:00:16 +02:00
parent ebbc94280e
commit 5077973012

View file

@ -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);
}