Skip to content

Commit

Permalink
Fix OpenXRay#1365 - Remove mcSprint from mstate_real when checking op…
Browse files Browse the repository at this point in the history
…posite keys
  • Loading branch information
yohjimane committed Jun 4, 2023
1 parent fc6ad72 commit 4c193a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/Actor_Movement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4c193a9

Please sign in to comment.