Skip to content

Commit

Permalink
actors: Correctly decrement the jump buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Jul 9, 2021
1 parent b8cb1fc commit 01c33a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/actors/Player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ func kick(delta: float):
_kicking = false
return

if input_disabled or _in_shock or _kicking:
return

# Jump buffering; as described here https://youtu.be/vFsJIrm2btU
_kick_buffer_delta -= delta

if input_disabled or _in_shock or _kicking :
return

if is_on_floor() or is_on_wall():
# Recharge when player touches the floor or a wall
_can_kick = true
Expand Down

0 comments on commit 01c33a3

Please # to comment.