]> git.localhorst.tv Git - blank.git/commitdiff
reenable pitch/yaw display in debug overlay
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 27 Oct 2015 13:06:52 +0000 (14:06 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 27 Oct 2015 13:06:52 +0000 (14:06 +0100)
src/ui/ui.cpp

index 6a2e2ee167042720101bab5f7d1062d3c2cc610f..618aff44742117f4965adeaaaa3a4240e7f2055f 100644 (file)
@@ -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) {