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-06-29 18:22:07 +0000
committerStijn Buys <ingar@osirion.org>2009-06-29 18:22:07 +0000
commit024532b748b15a92303fd20c3b6a7062a37ca2ed (patch)
treea313dee0aed03c27582a68432e40b96ab90dfbed /src/client
parentbf96f47d2c993112327f278eb2dd270b769e59aa (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.cc6
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');
}