diff options
Diffstat (limited to 'src/GameState.cpp')
-rw-r--r-- | src/GameState.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GameState.cpp b/src/GameState.cpp index e9c2cef..a2c5182 100644 --- a/src/GameState.cpp +++ b/src/GameState.cpp @@ -148,6 +148,7 @@ void GameState::Update(float deltaTime) { g_ReducedDebugInfo = packet->ReducedDebugInfo; LOG(INFO) << "Gamemode is " << g_Gamemode << ", Difficulty is " << (int) g_Difficulty << ", Level Type is " << g_LevelType; + SetGlobalState(GlobalState::Loading); EventAgregator::PushEvent(EventType::PlayerConnected, PlayerConnectedData{this}); break; } @@ -210,6 +211,7 @@ void GameState::Update(float deltaTime) { if (!g_IsGameStarted) { LOG(INFO) << "Game is started"; EventAgregator::PushEvent(EventType::RemoveLoadingScreen, RemoveLoadingScreenData{}); + SetGlobalState(GlobalState::Playing); } g_IsGameStarted = true; |