From 08a40b22be6fd42bdbd00bd8dcaf0d917ae9bae7 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 29 Aug 2010 17:57:10 +0000 Subject: [PATCH] - BOOM compatibility fix: Allow voodoo dolls to spawn inside narrow pits. SVN r2641 (trunk) --- src/p_user.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/p_user.cpp b/src/p_user.cpp index cf80d3819..cea9c9b9f 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -503,6 +503,15 @@ void APlayerPawn::Tick() void APlayerPawn::PostBeginPlay() { SetupWeaponSlots(); + + // Voodoo dolls: restore original floorz/ceilingz logic + if (player->mo != this) + { + dropoffz = floorz = Sector->floorplane.ZatPoint(x, y); + ceilingz = Sector->ceilingplane.ZatPoint(x, y); + P_FindFloorCeiling(this, true); + z = floorz; + } } //===========================================================================