diff options
author | Stijn Buys <ingar@osirion.org> | 2008-08-30 20:48:06 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-08-30 20:48:06 +0000 |
commit | 57837b0236bdebd7a1032245c64b1bc459f96d62 (patch) | |
tree | d9731122b3d28a3de206aec772af3bcbdeeb66b0 /src/client | |
parent | 084dd555366c326b7ee18515bcb282a8f4eb394a (diff) |
dedicated server ncurses console updates
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/view.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/view.cc b/src/client/view.cc index a737988..32f2971 100644 --- a/src/client/view.cc +++ b/src/client/view.cc @@ -121,9 +121,14 @@ void draw_entity_world_target(core::Entity *entity) if (!model) return; + if (!model->docks().size()) return; + float d = math::distance(core::localcontrol()->location(), entity->state()->location()) - entity->radius() - core::localcontrol()->radius(); + if (d > 100.0f) + return; + gl::enable(GL_DEPTH_TEST); gl::push(); gl::translate(entity->state()->location()); @@ -137,8 +142,8 @@ void draw_entity_world_target(core::Entity *entity) math::Vector3f minbox(dock->location()); for (size_t i=0; i < 3; i++) { - maxbox[i] += dock->radius(); - minbox[i] -= dock->radius(); + maxbox[i] += 0.025; + minbox[i] -= 0.025; } // top |