From 3d552c93379e4ee6170c32676a142636af37c91d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 26 Dec 2016 00:03:56 +0100 Subject: [PATCH] Use new get_look_* functions (0.4.15) --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 35d4366..9385b62 100644 --- a/init.lua +++ b/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