diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/hud.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/hud.cc b/src/client/hud.cc index ca7db56..3d32d3a 100644 --- a/src/client/hud.cc +++ b/src/client/hud.cc @@ -194,13 +194,17 @@ void HUD::draw_target(core::Entity *entity, bool is_active_target) // owner name if (entity->type() == core::Entity::Controlable) { - render::Text::setcolor('B'); 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, cy-r-4-2*render::Text::fontheight(), ec->owner()->name()); } + render::Text::setcolor('B'); + + } else if (entity == core::localplayer()->mission_target()) { + gl::color(palette()->mission()); + } else { render::Text::setcolor('N'); } |