From 70d049ae1d0959306785834cb4734176795dbb21 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 27 Oct 2015 14:06:52 +0100 Subject: [PATCH] reenable pitch/yaw display in debug overlay --- src/ui/ui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/ui.cpp b/src/ui/ui.cpp index 6a2e2ee..618aff4 100644 --- a/src/ui/ui.cpp +++ b/src/ui/ui.cpp @@ -347,10 +347,10 @@ void HUD::UpdatePosition() { } void HUD::UpdateOrientation() { - //std::stringstream s; - //s << std::setprecision(3) << "pitch: " << rad2deg(ctrl.Pitch()) - // << ", yaw: " << rad2deg(ctrl.Yaw()); - //orientation_text.Set(env.assets.small_ui_font, s.str()); + std::stringstream s; + s << std::setprecision(3) << "pitch: " << rad2deg(player.GetEntity().Pitch()) + << ", yaw: " << rad2deg(player.GetEntity().Yaw()); + orientation_text.Set(env.assets.small_ui_font, s.str()); } void HUD::PostMessage(const char *msg) { -- 2.39.2