From 57837b0236bdebd7a1032245c64b1bc459f96d62 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 30 Aug 2008 20:48:06 +0000 Subject: dedicated server ncurses console updates --- src/client/view.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/client/view.cc') 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 -- cgit v1.2.3