diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-17 14:06:02 +0100 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-17 14:06:02 +0100 | 
| commit | c00c83ee9982a7decda341ace95303f131d1b5c0 (patch) | |
| tree | 097a81e7d5a7857e22e737a27de5481fd0e6c260 /src/crepe/system/RenderSystem.cpp | |
| parent | cc2ec343367ebaa3b6a6142532f7a067c3c981a1 (diff) | |
| parent | 20d19e3c714d3e8ca3e35c170c07c563ecc719bb (diff) | |
Merge branch 'jaro/particle-system-improvement' of github.com:lonkaars/crepe
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 afd9548..505433a 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{  |