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-04-19 18:29:26 +0000
committerStijn Buys <ingar@osirion.org>2009-04-19 18:29:26 +0000
commitda36f97e1d764e1125deba86a403eee66e937d0b (patch)
tree8e51fe43780b216920dfeffcb359977a52fe2adc /src/client/hud.cc
parent6ab4021827e91303ac6fe2276f5567810b7e0496 (diff)
added jumpdrive capability to shipmodel info message,
Makefile.am cleanups, improved map targetting, corrected hud target owner color leak bug
Diffstat (limited to 'src/client/hud.cc')
-rw-r--r--src/client/hud.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/hud.cc b/src/client/hud.cc
index d0b7e0d..991f02b 100644
--- a/src/client/hud.cc
+++ b/src/client/hud.cc
@@ -190,20 +190,20 @@ void HUD::draw_target(core::Entity *entity, bool is_active_target)
} else {
strdistance << "--";
}
- if (entity->type() == core::Entity::Controlable) {
- render::Text::setcolor('B');
- } else {
- render::Text::setcolor('N');
- }
// owner name
if (entity->type() == core::Entity::Controlable) {
+ render::Text::setcolor('B');
const core::EntityControlable *ec = static_cast<core::EntityControlable *>(entity);
- if (ec->owner()) {
+ 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());
}
+ } else {
+ render::Text::setcolor('N');
}
+
render::Text::draw(cx-aux::text_length(entity->name()) * render::Text::fontwidth()*0.5f,
cy-r-4-render::Text::fontheight(), entity->name());