From ba1dd663dd0f8ba44745047d912a81375b4dcc53 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 24 Mar 2019 00:43:21 +0000 Subject: [PATCH] Fix Duke3D underwater movement speed git-svn-id: https://svn.eduke32.com/eduke32@7449 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 35734b967..5d871ba3f 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -5337,7 +5337,8 @@ HORIZONLY:; else if (sectorLotag != ST_2_UNDERWATER && sectorLotag != ST_1_ABOVE_WATER) pPlayer->pyoff = 0; - pPlayer->pos.z += pPlayer->vel.z; + if (sectorLotag != ST_2_UNDERWATER) + pPlayer->pos.z += pPlayer->vel.z; if ((sectorLotag != ST_2_UNDERWATER || ceilZ != pPlayer->truecz) && (pPlayer->opos.z < ceilZ + PMINHEIGHT || trueFloorDist < PHEIGHT))