diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-16 21:17:03 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-16 21:17:03 +0100 |
commit | cfbfef8deb9e278ad9a9023bda36fd3aa3f17373 (patch) | |
tree | a5a4ed0ddbe735638979b0457c81941d2ac8234a /src/crepe/system/RenderSystem.cpp | |
parent | 16f3aa77cfbfd3327a50a3f11f27e7d7dd303026 (diff) | |
parent | 20d19e3c714d3e8ca3e35c170c07c563ecc719bb (diff) |
Merge branch 'jaro/particle-system-improvement' of github.com:lonkaars/crepe into jaro/collision-system-handeling
Diffstat (limited to 'src/crepe/system/RenderSystem.cpp')
-rw-r--r-- | src/crepe/system/RenderSystem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp index d14d78d..fcb52c3 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -84,11 +84,11 @@ bool RenderSystem::render_particle(const Sprite & sprite, const double & scale) bool rendering_particles = false; for (const ParticleEmitter & em : emitters) { - if (&em.data.sprite != &sprite) continue; + if (&em.sprite != &sprite) continue; rendering_particles = true; if (!em.active) continue; - for (const Particle & p : em.data.particles) { + for (const Particle & p : em.particles) { if (!p.active) continue; ctx.draw(SDLContext::RenderContext{ |