From: Daniel Karbach Date: Tue, 27 Oct 2015 13:06:52 +0000 (+0100) Subject: reenable pitch/yaw display in debug overlay X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;ds=inline;h=70d049ae1d0959306785834cb4734176795dbb21;p=blank.git reenable pitch/yaw display in debug overlay --- 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) {