From a19a0cfe10f74fdd896e1b804b46fd64ea5b65a6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 15 Nov 2009 17:05:08 +0000 Subject: Center owner name on HUD targets --- src/client/hud.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(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'); -- cgit v1.2.3