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>2009-11-15 17:05:08 +0000
committerStijn Buys <ingar@osirion.org>2009-11-15 17:05:08 +0000
commita19a0cfe10f74fdd896e1b804b46fd64ea5b65a6 (patch)
tree4145bba5fb46c3ddf09e999a39b6307b9cc8a34f /src/client/hud.cc
parent7888930bf0a75999e103f7781c095e04b6860ee5 (diff)
Center owner name on HUD targets
Diffstat (limited to 'src/client/hud.cc')
-rw-r--r--src/client/hud.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/hud.cc b/src/client/hud.cc
index b7e2c43..c42431c 100644
--- a/src/client/hud.cc
+++ b/src/client/hud.cc
@@ -197,7 +197,7 @@ void HUD::draw_target(core::Entity *entity, bool is_active_target)
const core::EntityControlable *ec = static_cast<core::EntityControlable *>(entity);
if (ec->owner()) {
render::Text::setcolor('B');
- render::Text::draw(cx - aux::text_length(entity->name()) * render::Text::fontwidth()*0.5f,
+ render::Text::draw(cx - aux::text_length(ec->owner()->name()) * render::Text::fontwidth()*0.5f,
cy - r - 4 - 2*render::Text::fontheight(), ec->owner()->name());
}
render::Text::setcolor('B');