Skip to content

Commit

Permalink
Wrap to positive degree values (#5106)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymoo authored and nerzhul committed Jan 24, 2017
1 parent 0cde270 commit 87e9466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/serverpackethandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 87e9466

Please sign in to comment.