From 41597c6fc4e8bed05116dd936b6ec0dc32f0cbcb Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 28 Jun 2026 17:04:23 +0200 Subject: [PATCH] fix: PlayerInput only sends signals when not paused --- modules/wave_survival/player_input.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/wave_survival/player_input.cpp b/modules/wave_survival/player_input.cpp index 30989405..dd45e4b9 100644 --- a/modules/wave_survival/player_input.cpp +++ b/modules/wave_survival/player_input.cpp @@ -58,6 +58,9 @@ void PlayerInput::_notification(int what) { } void PlayerInput::unhandled_input(Ref const &event) { + if (get_tree()->is_paused()) { + return; + } Input *input{ Input::get_singleton() }; if (event->is_action("move_left") || event->is_action("move_right") || event->is_action("move_forward") || event->is_action("move_back")) { Vector2 state{