Skip to content

Commit

Permalink
Fixed bug with sprint on spot with weapon animation
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanAizek committed Nov 29, 2022
1 parent 2fee3a0 commit 625d794
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/xrGame/ActorInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,18 @@ void CActor::IR_OnKeyboardHold(int cmd)
break;

case kACCEL: mstate_wishful |= mcAccel; break;
case kL_STRAFE: mstate_wishful |= mcLStrafe; break;
case kR_STRAFE: mstate_wishful |= mcRStrafe; break;
case kL_STRAFE:
{
mstate_wishful &= ~mcSprint;
mstate_wishful |= mcLStrafe;
break;
}
case kR_STRAFE:
{
mstate_wishful &= ~mcSprint;
mstate_wishful |= mcRStrafe;
break;
}
case kL_LOOKOUT: mstate_wishful |= mcLLookout; break;
case kR_LOOKOUT: mstate_wishful |= mcRLookout; break;
case kFWD: mstate_wishful |= mcFwd; break;
Expand Down

0 comments on commit 625d794

Please sign in to comment.