- RR: fixed player input for diving.

Fixes #260
This commit is contained in:
Christoph Oelckers 2021-01-24 08:59:08 +01:00
parent 7f75b2274f
commit 1ab11a02e2

View file

@ -2319,7 +2319,7 @@ static void underwater(int snum, ESyncBits actions, int psect, int fz, int cz)
p->poszv -= 348; p->poszv -= 348;
if (p->poszv < -(256 * 6)) p->poszv = -(256 * 6); if (p->poszv < -(256 * 6)) p->poszv = -(256 * 6);
} }
else if (p->vehBraking || p->OnMotorcycle) else if ((actions & SB_CROUCH) || p->OnMotorcycle)
{ {
if (p->poszv < 0) p->poszv = 0; if (p->poszv < 0) p->poszv = 0;
p->poszv += 348; p->poszv += 348;