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/hudtargetstatus.cc
parentc7455f12589b97612ebe928ed11881edf4c4aacc (diff)
Corrected a number of minor HUD target issues.
Diffstat (limited to 'src/client/hudtargetstatus.cc')
-rw-r--r--src/client/hudtargetstatus.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/client/hudtargetstatus.cc b/src/client/hudtargetstatus.cc
index f002b2a..893d816 100644
--- a/src/client/hudtargetstatus.cc
+++ b/src/client/hudtargetstatus.cc
@@ -45,14 +45,22 @@ void HUDTargetStatus::draw()
const core::EntityControlable *target_controlable = static_cast<const core::EntityControlable *>(target);
if (target_controlable->owner()) {
targetinfostr << "^B" << target_controlable->owner()->name() << "\n";
- targetinfostr << "^B" << target->name() << "\n";
} else {
targetinfostr << "^B" << target->name() << "\n";
+ }
+ if (target->info()) {
+ targetinfostr << "^B" << target->info()->name() << "\n";
+ } else {
targetinfostr << "\n";
}
} else {
targetinfostr << "^B" << target->name() << "\n";
- targetinfostr << "\n";
+ if (target->info()) {
+ core::game()->request_info(target->info()->id());
+ targetinfostr << "^B" << target->info()->name() << "\n";
+ } else {
+ targetinfostr << "\n";
+ }
}
float d = math::distance(core::localcontrol()->location(), target->location())