From 01ff47493c715fd925a45fd566a7297d2fb4d62a Mon Sep 17 00:00:00 2001 From: Colormatic <118028926+ColormaticStudios@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:42:31 -0800 Subject: [PATCH] Fix for issue #4 --- addons/fpc/character.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/fpc/character.gd b/addons/fpc/character.gd index 77dc18f..5edb700 100644 --- a/addons/fpc/character.gd +++ b/addons/fpc/character.gd @@ -125,7 +125,7 @@ func handle_movement(delta, input_dir): func handle_state(moving): if sprint_enabled: if sprint_mode == 0: - if Input.is_action_pressed("sprint") and !Input.is_action_pressed("crouch"): + if Input.is_action_pressed(SPRINT) and !Input.is_action_pressed(CROUCH): if moving: if state != "sprinting": enter_sprint_state() @@ -147,7 +147,7 @@ func handle_state(moving): if crouch_enabled: if crouch_mode == 0: - if Input.is_action_pressed("crouch") and !Input.is_action_pressed("sprint"): + if Input.is_action_pressed(CROUCH) and !Input.is_action_pressed(SPRINT): if state != "crouching": enter_crouch_state() elif state == "crouching" and !$CrouchCeilingDetection.is_colliding():