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