From 30693571565776fdc1cd889db1331a24d89035ba Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 3 Jul 2010 21:21:28 +0200 Subject: [PATCH] Nicer wind particles in Arctic Wastes. --- src/particles.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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) { -- 2.39.5