From cf9825fcc350530f20cfbf58e52ad466a295873b Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Thu, 14 Aug 2025 14:39:24 -0500 Subject: [PATCH] Fix: Starting game from GUI runs "get ready" timer Closes #23: Main menu's start button doesn't run the get-ready timer I made the start button go directly to `GameState::Playing`, which is not actually the right state for beginning a new game. Swap the states and everything works again. --- src/widgets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets.rs b/src/widgets.rs index 10b03af..6bee726 100644 --- a/src/widgets.rs +++ b/src/widgets.rs @@ -284,7 +284,7 @@ fn operate_buttons( game_state.set(GameState::TitleScreen); } ButtonMenuAction::StartGame => { - game_state.set(GameState::Playing); + game_state.set(GameState::GetReady); } ButtonMenuAction::Quit => { app_exit_events.write(AppExit::Success);