summaryrefslogtreecommitdiffstats
path: root/src/GameState.cpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-06-23 03:02:26 +0200
committerLaG1924 <lag1924@gmail.com>2021-06-24 10:48:13 +0200
commit8080f3732ead03094e764fe733f054417772eafd (patch)
tree6e82e9304e33cc3e2a446b30332bb33326410eb2 /src/GameState.cpp
parentFix multithreading (diff)
downloadAltCraft-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 'src/GameState.cpp')
-rw-r--r--src/GameState.cpp3
1 files changed, 0 insertions, 3 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;
}