diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/packethandlers/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/packethandlers/server.cpp b/src/network/packethandlers/server.cpp index feb8d66be..137327e0b 100644 --- a/src/network/packethandlers/server.cpp +++ b/src/network/packethandlers/server.cpp @@ -543,8 +543,8 @@ void Server::handleCommand_PlayerPos(NetworkPacket* pkt) v3f position((f32)ps.X / 100.0, (f32)ps.Y / 100.0, (f32)ps.Z / 100.0); v3f speed((f32)ss.X / 100.0, (f32)ss.Y / 100.0, (f32)ss.Z / 100.0); - pitch = wrapDegrees(pitch); - yaw = wrapDegrees(yaw); + pitch = modulo360f(pitch); + yaw = modulo360f(yaw); Player *player = m_env->getPlayer(pkt->getPeerId()); if (player == NULL) { |