Skip to content

Commit

Permalink
FORMAT-AUTO: automatic format on pull request #143
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 5, 2023
1 parent 6d8bd07 commit 78efd1f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/Client/Systems/Menus/Menu/MenuSystems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,22 @@ namespace Systems {
}
Registry::getInstance().getClock().restart(clockId);
switch (Scene::SceneManager::getInstance().getCurrentScene()) {
case MENU: Logger::fatal("in menu"); Scene::SceneManager::getInstance().stop(); break;
case MENU:
Logger::fatal("in menu");
Scene::SceneManager::getInstance().stop();
break;
case CREATE_LOBBY_SCENE:
Logger::fatal("in select create lobby");
Scene::SceneManager::getInstance().changeScene(SELECT_LOBBY);
break;
case SELECT_LOBBY: Logger::fatal("in select lobby"); Scene::SceneManager::getInstance().changeScene(MENU); break;
case CREATE_SERVER_SCENE: Logger::fatal("in create server"); Scene::SceneManager::getInstance().changeScene(MENU); break;
case SELECT_LOBBY:
Logger::fatal("in select lobby");
Scene::SceneManager::getInstance().changeScene(MENU);
break;
case CREATE_SERVER_SCENE:
Logger::fatal("in create server");
Scene::SceneManager::getInstance().changeScene(MENU);
break;
case GAME:
Logger::fatal("in game");
Nitwork::NitworkClient::getInstance().disconnectLobby();
Expand Down

0 comments on commit 78efd1f

Please sign in to comment.