diff options
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index 8a03e40..e904888 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -171,9 +171,11 @@ void draw_model_lights(core::Entity *entity) gl::begin(gl::Points); for (std::list<core::Light *>::iterator lit = model->model_light.begin(); lit != model->model_light.end(); lit++) { - math::Vector3f location = (*lit)->location(); - gl::color((*lit)->color()); - gl::vertex(location); + if (!(*lit)->strobe() || (( core::application()->time() - floorf(core::application()->time()) ) < 0.5f)) { + math::Vector3f location = (*lit)->location(); + gl::color((*lit)->color()); + gl::vertex(location); + } } gl::end(); |