diff options
Diffstat (limited to 'src/client/hudplayerstatus.cc')
-rw-r--r-- | src/client/hudplayerstatus.cc | 9 |
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()); |