aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraymoo <raymoo@users.noreply.github.com>2017-01-24 08:25:11 -0800
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-01-24 17:25:11 +0100
commit87e9466cafd72ab9b78218c67352c80d20e008a8 (patch)
treef968dcc904927d7a45f4f44c42cd7929f409f049 /src
parent0cde270bf59c151e9a2f668631cd11b0d03f35ae (diff)
downloadminetest-87e9466cafd72ab9b78218c67352c80d20e008a8.tar.gz
minetest-87e9466cafd72ab9b78218c67352c80d20e008a8.tar.bz2
minetest-87e9466cafd72ab9b78218c67352c80d20e008a8.zip
Wrap to positive degree values (#5106)
Diffstat (limited to 'src')
-rw-r--r--src/network/serverpackethandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp
index 408fe7706..ac428e8ed 100644
--- a/src/network/serverpackethandler.cpp
+++ b/src/network/serverpackethandler.cpp
@@ -811,7 +811,7 @@ void Server::process_PlayerPos(RemotePlayer *player, PlayerSAO *playersao,
v3f speed((f32)ss.X / 100.0, (f32)ss.Y / 100.0, (f32)ss.Z / 100.0);
pitch = modulo360f(pitch);
- yaw = modulo360f(yaw);
+ yaw = wrapDegrees_0_360(yaw);
playersao->setBasePosition(position);
player->setSpeed(speed);