From 24f43fe5a152a8d81379021d45d50aa7e8223b68 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 30 Mar 2019 21:12:07 +0000 Subject: [PATCH] Fix another clipping problem underwater git-svn-id: https://svn.eduke32.com/eduke32@7470 1a8010ca-5511-0410-912e-c29ae57300e0 --- 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 745409edd..ffc89290e 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -4678,7 +4678,7 @@ void P_ProcessInput(int playerNum) int32_t floorZ, ceilZ, highZhit, lowZhit, dummy; - if (pPlayer->opos.z <= actor[pPlayer->i].ceilingz + PMINHEIGHT || pPlayer->opos.z >= actor[pPlayer->i].floorz - PMINHEIGHT) + if (pPlayer->pos.z < actor[pPlayer->i].ceilingz + PMINHEIGHT || pPlayer->pos.z > actor[pPlayer->i].floorz - PMINHEIGHT) stepHeight = 0; #if 0