diff options
author | Stijn Buys <ingar@osirion.org> | 2013-10-13 20:14:17 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-10-13 20:14:17 +0000 |
commit | d6471bf0f398257cb379944323cf85e8115491a5 (patch) | |
tree | a65de7dfe769d12fc88bb56f16bffc7f330e1d08 /src/render/draw.cc | |
parent | d192894dc60562c04a98ea0ba361045178e096d7 (diff) |
Axded explosion trigger for particle ejecotrs, fixed explosion particles for destroyed entities.
Diffstat (limited to 'src/render/draw.cc')
-rw-r--r-- | src/render/draw.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index 50d02a7..da0a063 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -1076,7 +1076,7 @@ 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()) { // draw lights and flares @@ -1096,8 +1096,7 @@ void draw_pass_model_fx(float elapsed) for (RenderExt::ParticleSystems::iterator it = ext_render(entity)->particles().begin(); it != ext_render(entity)->particles().end(); ++it) { (*it)->draw(elapsed); } - } - + } } } |