diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index e00d5cf0..bbdf5393 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -926,10 +926,16 @@ void ParticleManager::update(int renderFps) { particleCount += (*it)->getAliveParticleCount(); //if(renderFps < 0 || renderFps >= MIN_FPS_NORMAL_RENDERING || // dynamic_cast((*it)) == NULL) { - (*it)->update(); - if((*it)->isEmpty()) { - delete *it; - *it= NULL; + bool showParticle = true; + if(dynamic_cast((*it)) != NULL) { + showParticle = (*it)->getVisible(); + } + if(showParticle == true) { + (*it)->update(); + if((*it)->isEmpty()) { + delete *it; + *it= NULL; + } } //} }