aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2015-02-23 16:25:14 +1000
committerCraig Robbins <kde.psych@gmail.com>2015-02-23 22:50:32 +1000
commit3b6480c5b0c968ad9f5a7cfb7ca494989be03629 (patch)
tree1d8acc30b33c652a2d7897ed5f89b3825888bd43 /src/network
parent51057a56f540f4e74b424e22c94357e5cb5268b2 (diff)
downloadminetest-3b6480c5b0c968ad9f5a7cfb7ca494989be03629.tar.gz
minetest-3b6480c5b0c968ad9f5a7cfb7ca494989be03629.tar.bz2
minetest-3b6480c5b0c968ad9f5a7cfb7ca494989be03629.zip
Fix wrapDegrees family of functions
wrapDegrees() (renamed to modulo360f) wrapDegrees_0_360 wrapDegrees_180 Minor errors were present in previous versions; see issue #2328
Diffstat (limited to 'src/network')
-rw-r--r--src/network/packethandlers/server.cpp4
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) {