Fix Duke3D underwater movement speed

git-svn-id: https://svn.eduke32.com/eduke32@7449 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-24 00:43:21 +00:00 committed by Christoph Oelckers
parent b65bfefd0f
commit ba1dd663dd

View file

@ -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))