From 1ecff808e4fdff39a109007bf757405fe6034c0c Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 22 Nov 2023 15:19:31 +0000 Subject: [PATCH] FORMAT-AUTO: automatic format on pull request #144 --- src/Client/Systems/Menus/Menu/MenuSystems.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Client/Systems/Menus/Menu/MenuSystems.cpp b/src/Client/Systems/Menus/Menu/MenuSystems.cpp index c6b5b165..fe737e0f 100644 --- a/src/Client/Systems/Menus/Menu/MenuSystems.cpp +++ b/src/Client/Systems/Menus/Menu/MenuSystems.cpp @@ -236,26 +236,18 @@ namespace Systems { } Registry::getInstance().getClock().restart(clockId); switch (Scene::SceneManager::getInstance().getCurrentScene()) { - case MENU: - Scene::SceneManager::getInstance().stop(); - break; + case MENU: Scene::SceneManager::getInstance().stop(); break; case CREATE_LOBBY_SCENE: Scene::SceneManager::getInstance().changeScene(SELECT_LOBBY); break; - case SELECT_LOBBY: - Scene::SceneManager::getInstance().changeScene(MENU); - break; - case CREATE_SERVER_SCENE: - Scene::SceneManager::getInstance().changeScene(MENU); - break; + case SELECT_LOBBY: Scene::SceneManager::getInstance().changeScene(MENU); break; + case CREATE_SERVER_SCENE: Scene::SceneManager::getInstance().changeScene(MENU); break; case GAME: Nitwork::NitworkClient::getInstance().disconnectLobby(); Types::WaveInfos::getInstance().reset(); Scene::SceneManager::getInstance().changeScene(SELECT_LOBBY); break; - case LOADING_SCREEN: - Scene::SceneManager::getInstance().stop(); - break; + case LOADING_SCREEN: Scene::SceneManager::getInstance().stop(); break; } } }