summaryrefslogtreecommitdiffstats
path: root/src/GameState.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-05 17:07:10 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-05 17:07:10 +0200
commitc9c78e191dd71bacd769bbeccd58b80e4376184b (patch)
tree4da1a8500dd73dd6368fc89496dc0f428d318c5b /src/GameState.cpp
parent2017-08-03 (diff)
downloadAltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.gz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.bz2
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.lz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.xz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.zst
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.zip
Diffstat (limited to 'src/GameState.cpp')
-rw-r--r--src/GameState.cpp2
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;