From 024532b748b15a92303fd20c3b6a7062a37ca2ed Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 29 Jun 2009 18:22:07 +0000 Subject: client player list updates, short pif network messages, bump to network proto version 17 --- src/client/hud.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client/hud.cc') 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(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'); } -- cgit v1.2.3