Skip to content

Commit

Permalink
[Vanilla Bugfix]: Prevent stuck running animation; remove mcSprint fr…
Browse files Browse the repository at this point in the history
…om mstate_real when checking opposite keys (closes #1365) (#1366)
  • Loading branch information
yohjimane committed Jul 4, 2023
1 parent 5867a60 commit e008821
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 e008821

Please sign in to comment.