Skip to content

Commit

Permalink
FORMAT-AUTO: automatic format on pull request #144
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 22, 2023
1 parent 4c312d8 commit 1ecff80
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/Client/Systems/Menus/Menu/MenuSystems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 1ecff80

Please sign in to comment.