mirror of
https://repo.or.cz/minetest_orienteering.git
synced 2025-03-29 12:12:41 +01:00
Use new get_look_* functions (0.4.15)
This commit is contained in:
4
init.lua
4
init.lua
@ -294,8 +294,8 @@ function orienteering.update_hud_displays(player)
|
||||
str_pos = ""
|
||||
end
|
||||
|
||||
local yaw = (player:get_look_yaw()-math.pi/2)*toDegrees
|
||||
local pitch = player:get_look_pitch()*toDegrees
|
||||
local yaw = player:get_look_horizontal()*toDegrees
|
||||
local pitch = player:get_look_vertical()*toDegrees
|
||||
if ((compass or gps) and sextant) or quadcorder then
|
||||
str_angles = S("Yaw: @1°, pitch: @2°", string.format("%.1f", yaw), string.format("%.1f", pitch))
|
||||
elseif compass or gps then
|
||||
|
Reference in New Issue
Block a user