mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2024-08-20 04:34:07 +02:00
Fix incorrect pitch range; now is from -90° to 90°
This commit is contained in:
parent
80340fbd63
commit
1f46cdd31a
2
init.lua
2
init.lua
@ -242,7 +242,7 @@ function update_hud_displays(player)
|
||||
end
|
||||
|
||||
local yaw = (player:get_look_yaw()-math.pi*0.5)/(2*math.pi)*360
|
||||
local pitch = player:get_look_pitch()/math.pi*360
|
||||
local pitch = player:get_look_pitch()/math.pi*180
|
||||
if ((compass or gps) and sextant) or quadcorder then
|
||||
str_angles = string.format(S("Yaw: %.1f°, pitch: %.1f°"), yaw, pitch)
|
||||
elseif compass or gps then
|
||||
|
Loading…
Reference in New Issue
Block a user