From ec3e8bffe1c1e3e919cec13cd2b066d1847623d2 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Tue, 7 Apr 2020 10:17:40 -0700 Subject: [PATCH] Are you kidding me? This fixes the elevator in Duke3D E2L3. --- source/duke3d/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index c49909d26..6063a4ce5 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -4828,7 +4828,7 @@ void P_ProcessInput(int playerNum) { int const spriteNum = highZhit & (MAXSPRITES-1); - if ((sprite[spriteNum].z + PMINHEIGHT > pPlayer->pos.z) + if ((spriteNum != pPlayer->i && sprite[spriteNum].z + PMINHEIGHT > pPlayer->pos.z) || (sprite[spriteNum].statnum == STAT_ACTOR && sprite[spriteNum].extra >= 0)) { highZhit = 0;