diff options
author | LaG1924 <lag1924@gmail.com> | 2021-06-23 03:02:26 +0200 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-06-24 10:48:13 +0200 |
commit | 8080f3732ead03094e764fe733f054417772eafd (patch) | |
tree | 6e82e9304e33cc3e2a446b30332bb33326410eb2 /src | |
parent | Fix multithreading (diff) | |
download | AltCraft-8080f3732ead03094e764fe733f054417772eafd.tar AltCraft-8080f3732ead03094e764fe733f054417772eafd.tar.gz AltCraft-8080f3732ead03094e764fe733f054417772eafd.tar.bz2 AltCraft-8080f3732ead03094e764fe733f054417772eafd.tar.lz AltCraft-8080f3732ead03094e764fe733f054417772eafd.tar.xz AltCraft-8080f3732ead03094e764fe733f054417772eafd.tar.zst AltCraft-8080f3732ead03094e764fe733f054417772eafd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/GameState.cpp | 3 | ||||
-rw-r--r-- | src/Packet.hpp | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/GameState.cpp b/src/GameState.cpp index 3d1714b..be408dd 100644 --- a/src/GameState.cpp +++ b/src/GameState.cpp @@ -306,8 +306,6 @@ void GameState::UpdatePacket(std::shared_ptr<Packet> ptr) { auto packet = std::static_pointer_cast<PacketEntityRelativeMove>(ptr); Entity &entity = world.GetEntity(packet->EntityId); entity.pos = entity.pos + Entity::DecodeDeltaPos(packet->DeltaX, packet->DeltaY, packet->DeltaZ); - if (entity.entityId != 0) - LOG(INFO) << "M: " << packet->EntityId; break; } @@ -325,7 +323,6 @@ void GameState::UpdatePacket(std::shared_ptr<Packet> ptr) { Entity &entity = world.GetEntity(packet->EntityId); entity.pitch = packet->Pitch / 256.0; entity.yaw = packet->Yaw / 256.0; - //LOG(INFO) << "L: " << packet->EntityId; break; } diff --git a/src/Packet.hpp b/src/Packet.hpp index ccc486f..56a2e5e 100644 --- a/src/Packet.hpp +++ b/src/Packet.hpp @@ -89,10 +89,10 @@ enum PacketNamePlayCB { Particle, JoinGame, Map, + EntityCB, EntityRelativeMove, EntityLookAndRelativeMove, EntityLook, - EntityCB, VehicleMove, OpenSignEditor, CraftRecipeResponse, |