Fix combination GPS + sextant

This commit is contained in:
Wuzzy 2015-08-28 22:50:45 +02:00
parent 0d0d34f8b6
commit f1300e118d

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