Fix: Starting game from GUI runs "get ready" timer
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 7m14s
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 7m14s
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.
This commit is contained in:
@@ -284,7 +284,7 @@ fn operate_buttons(
|
|||||||
game_state.set(GameState::TitleScreen);
|
game_state.set(GameState::TitleScreen);
|
||||||
}
|
}
|
||||||
ButtonMenuAction::StartGame => {
|
ButtonMenuAction::StartGame => {
|
||||||
game_state.set(GameState::Playing);
|
game_state.set(GameState::GetReady);
|
||||||
}
|
}
|
||||||
ButtonMenuAction::Quit => {
|
ButtonMenuAction::Quit => {
|
||||||
app_exit_events.write(AppExit::Success);
|
app_exit_events.write(AppExit::Success);
|
||||||
|
|||||||
Reference in New Issue
Block a user