diff options
Diffstat (limited to 'src')
-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, |