From 1ab11a02e2699a40032830f9d791d82c162f15f2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 24 Jan 2021 08:59:08 +0100 Subject: [PATCH] - RR: fixed player input for diving. Fixes #260 --- source/games/duke/src/player_r.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/player_r.cpp b/source/games/duke/src/player_r.cpp index faef5d2c4..2e2bcde57 100644 --- a/source/games/duke/src/player_r.cpp +++ b/source/games/duke/src/player_r.cpp @@ -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;