diff options
author | Stijn Buys <ingar@osirion.org> | 2009-06-29 18:22:07 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-06-29 18:22:07 +0000 |
commit | 024532b748b15a92303fd20c3b6a7062a37ca2ed (patch) | |
tree | a313dee0aed03c27582a68432e40b96ab90dfbed /src/client | |
parent | bf96f47d2c993112327f278eb2dd270b769e59aa (diff) |
client player list updates, short pif network messages, bump to network proto version 17
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'); } |