mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Wrap to positive degree values (#5106)
This commit is contained in:
parent
0cde270bf5
commit
87e9466caf
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
v3f speed((f32)ss.X / 100.0, (f32)ss.Y / 100.0, (f32)ss.Z / 100.0);
|
||||||
|
|
||||||
pitch = modulo360f(pitch);
|
pitch = modulo360f(pitch);
|
||||||
yaw = modulo360f(yaw);
|
yaw = wrapDegrees_0_360(yaw);
|
||||||
|
|
||||||
playersao->setBasePosition(position);
|
playersao->setBasePosition(position);
|
||||||
player->setSpeed(speed);
|
player->setSpeed(speed);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue