Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-06 00:37:32 +0000
committerStijn Buys <ingar@osirion.org>2013-11-06 00:37:32 +0000
commit66746168f710cfdfbb0853947985fa0c552e81fb (patch)
treef556ee8468125be1c652b915a443d177687a93aa /src/client/hudplayerstatus.cc
parentc7455f12589b97612ebe928ed11881edf4c4aacc (diff)
Corrected a number of minor HUD target issues.
Diffstat (limited to 'src/client/hudplayerstatus.cc')
-rw-r--r--src/client/hudplayerstatus.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/hudplayerstatus.cc b/src/client/hudplayerstatus.cc
index e1f921a..0dba3c8 100644
--- a/src/client/hudplayerstatus.cc
+++ b/src/client/hudplayerstatus.cc
@@ -37,7 +37,14 @@ void HUDPlayerStatus::draw()
std::ostringstream playerinfostr;
playerinfostr << "^B" << core::localplayer()->name() << '\n';
- playerinfostr << "^B" << core::localcontrol()->name() << '\n';
+
+ if (core::localcontrol()->info()) {
+ core::game()->request_info(core::localcontrol()->info()->id());
+ playerinfostr << "^B" << core::localcontrol()->info()->name() << '\n';
+ } else {
+ playerinfostr << '\n';
+ }
+
playerinfostr << "^NCredits: " << core::localplayer()->credits();
ui::Paint::set_color(palette()->foreground());