From 83fb219e62113a9f41888af4f2726e5ce5305970 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 10 Sep 2008 19:17:52 +0000 Subject: serverside entities --- src/render/draw.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/render/draw.cc') diff --git a/src/render/draw.cc b/src/render/draw.cc index 8bf694f..c74f65f 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -498,7 +498,7 @@ void draw_pass_default() for (core::Zone::Content::iterator it = zone->content().begin(); it != zone->content().end(); ++it) { core::Entity *entity = (*it); - if (!entity->model() && (entity->type() != core::Entity::Globe)) { + if (!entity->serverside() && !entity->model() && (entity->type() != core::Entity::Globe)) { gl::push(); gl::translate(entity->state()->location()); @@ -1086,7 +1086,6 @@ void draw(float seconds) draw_pass_spacegrid(); // draw the blue spacegrid Dust::draw(zone_color); // draw spacedust - draw_pass_model_fx(seconds); // draw entity lights and engines gl::enable(GL_LIGHTING); @@ -1103,7 +1102,7 @@ void draw(float seconds) gl::disable(GL_COLOR_MATERIAL); // disable color tracking gl::disable(GL_CULL_FACE); // disable culling - gl::depthmask(GL_TRUE); // enable depth buffer writing + gl::depthmask(GL_TRUE); // enable depth buffer writing gl::disable(GL_DEPTH_TEST); // disable depth buffer testing // GL_BLEND must be enabled for the GUI } -- cgit v1.2.3