Skip to content

Commit

Permalink
don't consume dash buffer if dashcooldown is still running
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelFB committed Feb 5, 2024
1 parent 2af2cb3 commit f3e3020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Actors/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ private void StClimbingUpdate()
return;
}

if (Controls.Dash.ConsumePress() && dashes > 0 && tDashCooldown <= 0)
if (dashes > 0 && tDashCooldown <= 0 && Controls.Dash.ConsumePress())
{
stateMachine.State = States.Dashing;
dashes--;
Expand Down

0 comments on commit f3e3020

Please sign in to comment.