From c9c78e191dd71bacd769bbeccd58b80e4376184b Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 5 Aug 2017 20:07:10 +0500 Subject: 2017-08-05 --- src/GameState.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/GameState.cpp') 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; -- cgit v1.2.3