From 3c2ea5904aa3f56d2a3f78fba99fcc57218ffa1f Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 6 Apr 2019 06:38:04 +0000 Subject: [PATCH] Fix player bumping their head on the ceiling during a jump... again... git-svn-id: https://svn.eduke32.com/eduke32@7483 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index 0676e09bd..1995984d2 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -5178,7 +5178,8 @@ void P_ProcessInput(int playerNum) } } - if ((sectorLotag != ST_2_UNDERWATER || ceilZ != pPlayer->truecz) && pPlayer->jumping_counter && pPlayer->pos.z < (ceilZ + PMINHEIGHT)) + // this is == (ceilZ + PMINHEIGHT) because pos.z is explicitly set to this value elsewhere + if ((sectorLotag != ST_2_UNDERWATER || ceilZ != pPlayer->truecz) && pPlayer->jumping_counter && pPlayer->pos.z == (ceilZ + PMINHEIGHT)) { pPlayer->jumping_counter = 0; if (pPlayer->vel.z < 0)