From: Guus Sliepen Date: Sat, 3 Jul 2010 19:21:28 +0000 (+0200) Subject: Nicer wind particles in Arctic Wastes. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=30693571565776fdc1cd889db1331a24d89035ba;p=quix0rs-blobwars.git Nicer wind particles in Arctic Wastes. --- diff --git a/src/particles.cpp b/src/particles.cpp index f924dd2..7e6979a 100644 --- a/src/particles.cpp +++ b/src/particles.cpp @@ -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) {