Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/draw.cc')
-rw-r--r--src/render/draw.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 88a08b9..3d71ad4 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -966,10 +966,10 @@ void draw_pass_model_fx(float elapsed)
for (core::Zone::Content::iterator it = zone->content().begin(); it != zone->content().end(); it++) {
core::Entity *entity = (*it);
- if (entity->model() && ext_render(entity)->detailvisible() && ext_render(entity)->power()) {
+ if (entity->model() && ext_render(entity)->detailvisible()) {
// draw lights and flares
- if (draw_lights) {
+ if (ext_render(entity)->power() && draw_lights) {
const float modelscale = entity->radius() / entity->model()->radius();
draw_model_lights(entity->model(), modelscale,