mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2024-08-20 04:34:07 +02:00
Fix combination GPS + sextant
This commit is contained in:
parent
0d0d34f8b6
commit
f1300e118d
2
init.lua
2
init.lua
@ -125,7 +125,7 @@ function update_hud_displays(player)
|
||||
|
||||
local yaw = math.floor((player:get_look_yaw()-math.pi*0.5)/(2*math.pi)*360)
|
||||
local pitch = math.floor(player:get_look_pitch()/math.pi*360)
|
||||
if compass and sextant then
|
||||
if (compass or gps) and sextant then
|
||||
str_angles = "Yaw: "..yaw..", pitch: "..pitch
|
||||
elseif compass or gps then
|
||||
str_angles = "Yaw: "..yaw
|
||||
|
Loading…
Reference in New Issue
Block a user