From c53c8f29e7d3dcbd19d6e1b3bab2dc51a9e6125b Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 20 Mar 2012 03:15:23 +0000 Subject: [PATCH] - Fixed: Just walking onto a 3D floor would not send SECSPAC_HitFloor or SECSPAC_HitCeiling events as it does with the real floor and ceiling. You needed some Z movement to make it happen. SVN r3461 (trunk) --- src/p_mobj.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index ab69bbb197..d3298f81ef 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -3395,6 +3395,14 @@ void AActor::CheckSectorTransition(sector_t *oldsec) } Sector->SecActTarget->TriggerAction(this, act); } + if (z == floorz) + { + P_CheckFor3DFloorHit(this); + } + if (z + height == ceilingz) + { + P_CheckFor3DCeilingHit(this); + } } }