From 4c193a973dd4b8e21f58f8760a9cc02d1788d845 Mon Sep 17 00:00:00 2001 From: yohjimane Date: Sat, 3 Jun 2023 19:25:06 -0700 Subject: [PATCH] Fix #1365 - Remove mcSprint from mstate_real when checking opposite keys --- src/xrGame/Actor_Movement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrGame/Actor_Movement.cpp b/src/xrGame/Actor_Movement.cpp index 992d6319894..2beec1b8db5 100644 --- a/src/xrGame/Actor_Movement.cpp +++ b/src/xrGame/Actor_Movement.cpp @@ -279,7 +279,7 @@ void CActor::g_cl_CheckControls(u32 mstate_wf, Fvector& vControlAccel, float& Ju // correct "mstate_real" if opposite keys pressed if (_abs(vControlAccel.z) < EPS) - mstate_real &= ~(mcFwd + mcBack); + mstate_real &= ~(mcFwd + mcBack + mcSprint); if (_abs(vControlAccel.x) < EPS) mstate_real &= ~(mcLStrafe + mcRStrafe);