X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2Fui.cpp;fp=src%2Fui%2Fui.cpp;h=c45b34b13213cf85dc6317e46e63fecae0abfa2d;hb=4fbf5a3c1b0e530706023f5fc4be2f68d30ea645;hp=f5664dc0f4828b894f80e983b233441c1397ebb7;hpb=0d580658b896dfec07466c31ae4847455724ee95;p=blank.git diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index f5664dc..c45b34b 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -13,6 +13,7 @@ #include "../app/init.hpp" #include "../audio/Audio.hpp" #include "../audio/SoundBank.hpp" +#include "../geometry/distance.hpp" #include "../graphics/Font.hpp" #include "../graphics/Viewport.hpp" #include "../io/TokenStreamReader.hpp" @@ -374,8 +375,8 @@ void HUD::UpdatePosition() { void HUD::UpdateOrientation() { std::stringstream s; - s << std::setprecision(3) << "pitch: " << rad2deg(player.GetEntity().Pitch()) - << ", yaw: " << rad2deg(player.GetEntity().Yaw()); + s << std::setprecision(3) << "pitch: " << glm::degrees(player.GetEntity().Pitch()) + << ", yaw: " << glm::degrees(player.GetEntity().Yaw()); orientation_text.Set(env.assets.small_ui_font, s.str()); }