From 66746168f710cfdfbb0853947985fa0c552e81fb Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 6 Nov 2013 00:37:32 +0000 Subject: Corrected a number of minor HUD target issues. --- src/client/hudplayerstatus.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/client/hudplayerstatus.cc') 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()); -- cgit v1.2.3