diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-23 17:23:22 +0200 |
commit | bdf73a67ffd964c37db5a9694424380bfd685c95 (patch) | |
tree | 3d313b318623eb7e7c46aed80c10e7fe896a5587 /src/GameState.cpp | |
parent | 2017-08-20 (diff) | |
download | AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.gz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.bz2 AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.lz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.xz AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.tar.zst AltCraft-bdf73a67ffd964c37db5a9694424380bfd685c95.zip |
Diffstat (limited to 'src/GameState.cpp')
-rw-r--r-- | src/GameState.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GameState.cpp b/src/GameState.cpp index e536df0..b9f9b28 100644 --- a/src/GameState.cpp +++ b/src/GameState.cpp @@ -168,8 +168,11 @@ void GameState::UpdatePacket() break; case Explosion: break; - case UnloadChunk: + case UnloadChunk: { + auto packet = std::static_pointer_cast<PacketUnloadChunk>(ptr); + world.ParseChunkData(packet); break; + } case ChangeGameState: break; case KeepAliveCB: |