diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-11 21:27:54 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-11 21:27:54 +0100 |
commit | cf96d9639dbd18df6451a07fd7b623616e842c4a (patch) | |
tree | ec9567200c2e35a30953f113bc5d6cce9a1e8884 /src/crepe/system | |
parent | 3d97f7c60536bf14f314cc703883f74345aacd21 (diff) |
adjusted rendering and example
Diffstat (limited to 'src/crepe/system')
-rw-r--r-- | src/crepe/system/RenderSystem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index 3de8330..3fbd175 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -49,6 +49,7 @@ void RenderSystem::render_particle(const ParticleEmitter& em, Transform & tm){ SDLContext & render = SDLContext::get_instance(); for (const Particle& p : em.data.particles) { + if (!p.active) continue; tm.position = p.position; render.draw(em.data.sprite, tm , *curr_cam); } |