Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/view.cc')
-rw-r--r--src/client/view.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index 0a5c44e..8da7892 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -168,6 +168,14 @@ void draw_status()
n = (n+1) % MAXNOTIFYLINES;
}
+ // draw a basic HUD
+ if (core::localcontrol()) {
+ status.str("");
+ status << " dir " << std::setfill('0') << std::setw(3) << roundf(core::localcontrol()->direction()) <<
+ " speed " << std::setfill(' ') << std::setw(5) << std::fixed << std::setprecision(2) << core::localcontrol()->speed();
+ draw_text(CHARWIDTH, video::height - CHARHEIGHT -4, status);
+ }
+
gl::disable(GL_TEXTURE_2D);
}