From 01c33a35486703fbd831cb5b366dab9d6c1cd92b Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 9 Jul 2021 23:24:55 +0100 Subject: [PATCH] actors: Correctly decrement the jump buffer --- code/actors/Player.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/actors/Player.gd b/code/actors/Player.gd index 92a032e..c16cf74 100644 --- a/code/actors/Player.gd +++ b/code/actors/Player.gd @@ -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