From c62e2cd49649109f0135e56ee8add0dab2254d01 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 20 Aug 2017 20:21:29 +0500 Subject: 2017-08-20 --- src/GameState.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/GameState.cpp') diff --git a/src/GameState.cpp b/src/GameState.cpp index c49b332..e536df0 100644 --- a/src/GameState.cpp +++ b/src/GameState.cpp @@ -358,8 +358,12 @@ void GameState::UpdatePacket() LOG(INFO) << "Spawn position is " << g_SpawnPosition.x << " " << g_SpawnPosition.y << " " << g_SpawnPosition.z; break; } - case TimeUpdate: + case TimeUpdate: { + auto packet = std::static_pointer_cast(ptr); + WorldAge = packet->WorldAge; + TimeOfDay = packet->TimeOfDay; break; + } case Title: break; case SoundEffect: -- cgit v1.2.3