Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/hud.cc15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/client/hud.cc b/src/client/hud.cc
index de36a17..425bd80 100644
--- a/src/client/hud.cc
+++ b/src/client/hud.cc
@@ -145,9 +145,12 @@ void HUD::draw_offscreen_target(core::Entity *entity, bool is_active_target)
} else if (reputation <= core::range::reputation_hostile) {
bitmap_color.assign(1.0f, 0.0f, 0.0f); // red
} else {
- bitmap_color.assign(1.0f, 1.0f, 1.0f); // white
+ if (controlable->owner()) {
+ bitmap_color.assign(1.0f); // white
+ } else {
+ bitmap_color.assign(0.75f); // gray
+ }
}
-
} else if (entity->has_flag(core::Entity::Dockable)) {
bitmap_material.assign("bitmaps/hud/offscreen_dockable");
@@ -157,7 +160,7 @@ void HUD::draw_offscreen_target(core::Entity *entity, bool is_active_target)
} else if (reputation <= core::range::reputation_hostile) {
bitmap_color.assign(1.0f, 0.0f, 0.0f); // red
} else {
- bitmap_color.assign(1.0f, 1.0f, 1.0f); // white
+ bitmap_color.assign(0.75f); // gray
}
} else {
@@ -253,14 +256,16 @@ void HUD::draw_target(core::Entity *entity, bool is_active_target)
if (controlable) {
if (controlable->owner()) {
bitmap_material.assign("bitmaps/hud/target_controlable");
+ bitmap_color.assign(1.0f); // white
} else {
bitmap_material.assign("bitmaps/hud/target_default");
+ bitmap_color.assign(0.75f); // gray
}
- bitmap_color.assign(1.0f, 1.0f, 1.0f); // white
+
} else if (entity->has_flag(core::Entity::Dockable)) {
bitmap_material.assign("bitmaps/hud/target_dockable");
- bitmap_color.assign(1.0f, 1.0f, 1.0f); // white
+ bitmap_color.assign(0.75f); // gray
} else {
bitmap_material.assign("bitmaps/hud/target_default");