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,6 +5337,7 @@ HORIZONLY:;
else if (sectorLotag != ST_2_UNDERWATER && sectorLotag != ST_1_ABOVE_WATER) else if (sectorLotag != ST_2_UNDERWATER && sectorLotag != ST_1_ABOVE_WATER)
pPlayer->pyoff = 0; pPlayer->pyoff = 0;
if (sectorLotag != ST_2_UNDERWATER)
pPlayer->pos.z += pPlayer->vel.z; pPlayer->pos.z += pPlayer->vel.z;
if ((sectorLotag != ST_2_UNDERWATER || ceilZ != pPlayer->truecz) if ((sectorLotag != ST_2_UNDERWATER || ceilZ != pPlayer->truecz)