From 50779730125db0a9544632f212894d6a29fa1c06 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 17 May 2021 12:00:16 +0200 Subject: [PATCH] - 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. --- src/playsim/p_actionfunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/p_actionfunctions.cpp b/src/playsim/p_actionfunctions.cpp index 92006b9b8f..9ae4847e7b 100644 --- a/src/playsim/p_actionfunctions.cpp +++ b/src/playsim/p_actionfunctions.cpp @@ -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); }