diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index 5a88488d2..1c7561788 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -4702,7 +4702,7 @@ void P_ProcessInput(int playerNum) { if (pPlayer->pos.z + stepHeight > actor[pPlayer->i].floorz - PMINHEIGHT) stepHeight -= (pPlayer->pos.z + stepHeight) - (actor[pPlayer->i].floorz - PMINHEIGHT); - else + else if (!pPlayer->on_ground) stepHeight -= (pPlayer->jumping_counter << 1) + (pPlayer->jumping_counter >> 1); stepHeight = max(stepHeight, 0);