Skip to content

Commit

Permalink
Fix aiming zoom mode not influencing crouch movement speed
Browse files Browse the repository at this point in the history
  • Loading branch information
revolucas committed Jun 8, 2018
1 parent 5e3d625 commit b170c4b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/xrGame/Actor_Movement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,9 +576,16 @@ bool isActorAccelerated(u32 mstate, bool ZoomMode)
else
res = true;

if (mstate&(mcCrouch|mcClimb|mcJump|mcLanding|mcLanding2))
if (mstate&(mcClimb|mcJump|mcLanding|mcLanding2))
return res;
if (mstate & mcLookout || ZoomMode)

if (ZoomMode)
return false;

if (mstate&mcCrouch)
return res;

if (mstate & mcLookout)
return false;
return res;
}
Expand Down

0 comments on commit b170c4b

Please sign in to comment.