Use new get_look_* functions (0.4.15)

This commit is contained in:
Wuzzy 2016-12-26 00:03:56 +01:00
parent 086911f51a
commit 3d552c9337

@ -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