- 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
1 changed files with 1 additions and 1 deletions

View File

@ -2319,7 +2319,7 @@ static void underwater(int snum, ESyncBits actions, int psect, int fz, int cz)
p->poszv -= 348;
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;
p->poszv += 348;