diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 11:47:09 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 11:47:09 +0100 |
commit | eab3c5a0de59c3f76272b586b375f7914a88a2ee (patch) | |
tree | 2a9ec306714ddd37d088fc22197160d48105e743 /src/crepe/system/RenderSystem.cpp | |
parent | a61e3d522c29cfea966a06bb9f9e5e42eae2b7ab (diff) | |
parent | 3d237aed79980e8703ca53df0549e0b48816e464 (diff) |
merge jaro/particle-system-improvement
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 607bbab..c403f6c 100644 --- a/src/crepe/system/RenderSystem.cpp +++ b/src/crepe/system/RenderSystem.cpp @@ -83,11 +83,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{ |