From a1729c1cd554112254573b3dd6554dbbb61f66c4 Mon Sep 17 00:00:00 2001 From: Colormatic <118028926+ColormaticStudios@users.noreply.github.com> Date: Mon, 8 Jan 2024 11:58:14 -0800 Subject: [PATCH] Fix the rest of #4 derp --- addons/fpc/character.gd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/fpc/character.gd b/addons/fpc/character.gd index 5edb700..25adb70 100644 --- a/addons/fpc/character.gd +++ b/addons/fpc/character.gd @@ -136,7 +136,7 @@ func handle_state(moving): enter_normal_state() elif sprint_mode == 1: if moving: - if Input.is_action_just_pressed("sprint"): + if Input.is_action_just_pressed(SPRINT): match state: "normal": enter_sprint_state() @@ -153,7 +153,7 @@ func handle_state(moving): elif state == "crouching" and !$CrouchCeilingDetection.is_colliding(): enter_normal_state() elif crouch_mode == 1: - if Input.is_action_just_pressed("crouch"): + if Input.is_action_just_pressed(CROUCH): match state: "normal": enter_crouch_state() @@ -174,7 +174,6 @@ func enter_crouch_state(): state = "crouching" speed = crouch_speed - func enter_sprint_state(): #print("entering sprint state") var prev_state = state