fix: guard input forwarding in PlayerMovementController; add movement_runner verifier

This commit is contained in:
2026-06-03 15:09:00 -04:00
parent ceeff6a1ab
commit 24a8651a6d
2 changed files with 15 additions and 1 deletions
+3 -1
View File
@@ -41,7 +41,9 @@ func _ready() -> void:
func _process(_delta: float) -> void:
_machine.input_jump_just_pressed = Input.is_action_just_pressed("jump") and not _machine.input_jump_pressed
var fsm_node = _machine.get_node("MovementStateMachine")
if fsm_node and fsm_node.has_method("switch_to"):
_machine.input_jump_just_pressed = Input.is_action_just_pressed("jump") and not _machine.input_jump_pressed
_machine.input_jump_pressed = Input.is_action_pressed("jump")
_machine.input_sprint = Input.is_action_pressed("sprint")
_machine.input_crouch = Input.is_action_pressed("crouch")