]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/particles.cpp
Fix warnings from -W.
[quix0rs-blobwars.git] / src / particles.cpp
index ea38ede85914a30ff2aa03b4e3fec1bcf5748528..5ea25974d34d4fd2397503b6314ab755af98569b 100644 (file)
@@ -87,7 +87,10 @@ void addFireTrailParticle(float x, float y)
 
 void addFireParticles(float x, float y, int amount)
 {
-       map.addParticle(x + Math::rrand(-2, 2), y + Math::rrand(-2, 2), 0, 1, Math::rrand(5, 30), graphics.red, graphics.getSprite("Explosion", true), PAR_COLLIDES);
+       for (int i = 0 ; i < amount ; i++)
+       {
+               map.addParticle(x + Math::rrand(-2, 2), y + Math::rrand(-2, 2), 0, 1, Math::rrand(5, 30), graphics.red, graphics.getSprite("Explosion", true), PAR_COLLIDES);
+       }
 }
 
 void addBubble(float x, float y)