Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/view.cc')
-rw-r--r--src/client/view.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index 9eb9c33..304d2a5 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -455,6 +455,15 @@ void draw_entity_target(core::Entity *entity, bool is_active_target)
glVertex3f(cx, cy-r+2, 0);
render::gl::end();
+ if ((entity->flags() & core::Entity::Dockable) == core::Entity::Dockable) {
+ render::gl::begin(render::gl::LineLoop);
+ glVertex3f(cx+ (r*0.25f), cy+2, 0);
+ glVertex3f(cx, cy+(r*0.25f)+2, 0);
+ glVertex3f(cx-(r*0.25f), cy+2, 0);
+ glVertex3f(cx, cy-(r*0.25f)+2, 0);
+ render::gl::end();
+ }
+
if (entity == core::localplayer()->mission_target()) {
render::gl::color(1, 0.5f, 1, 1); // FIXME mission color
} else if (entity->type() == core::Entity::Controlable) {
@@ -471,6 +480,15 @@ void draw_entity_target(core::Entity *entity, bool is_active_target)
glVertex3f(cx, cy-r, 0);
render::gl::end();
+ if ((entity->flags() & core::Entity::Dockable) == core::Entity::Dockable) {
+ render::gl::begin(render::gl::LineLoop);
+ glVertex3f(cx+(r*0.25f), cy, 0);
+ glVertex3f(cx, cy+(r*0.25f), 0);
+ glVertex3f(cx-(r*0.25f), cy, 0);
+ glVertex3f(cx, cy-(r*0.25f), 0);
+ render::gl::end();
+ }
+
render::gl::enable(GL_TEXTURE_2D);
if (is_active_target) {