]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Nicer wind particles in Arctic Wastes.
authorGuus Sliepen <guus@debian.org>
Sat, 3 Jul 2010 19:21:28 +0000 (21:21 +0200)
committerGuus Sliepen <guus@debian.org>
Sat, 3 Jul 2010 19:21:28 +0000 (21:21 +0200)
src/particles.cpp

index f924dd2f2217c5c9a0643f2cd82cfe7219cd9c58..7e6979a6d022dc766a48ce7065a6bd88054f3b81 100644 (file)
@@ -25,18 +25,18 @@ void addWindParticles()
        int c = graphics.white;
        float x, y, dx, dy;
        
-       if (player.x < 320)
-       {
-               x = Math::rrand(-100, 700);
-       }
-       else
-       {
-               x = player.x + Math::rrand(-450, 450);
-       }
-       
+
        for (int i = 0 ; i < 50 ; i++)
        {
-               
+               if (player.x < 320)
+               {
+                       x = Math::rrand(-100, 700);
+               }
+               else
+               {
+                       x = player.x + Math::rrand(-450, 450);
+               }
+                       
                c = Math::prand() % 4;
                switch (c)
                {