From: Ondřej Hošek Date: Wed, 26 Oct 2005 20:24:03 +0000 (+0000) Subject: Added the snowsnail to the random mode of the dispenser. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fa003f27be10011b6a1265cbd78877f2d9ef6572;p=supertux.git Added the snowsnail to the random mode of the dispenser. SVN-Revision: 2920 --- diff --git a/src/badguy/dispenser.cpp b/src/badguy/dispenser.cpp index 3b1d98bd4..b565bfe21 100644 --- a/src/badguy/dispenser.cpp +++ b/src/badguy/dispenser.cpp @@ -107,13 +107,14 @@ Dispenser::launch_badguy() Sector::current()->add_object(new PoisonIvy(get_pos().x, get_pos().y+32, dir)); else if (badguy == "random") { - switch (rand()%5) + switch (rand()%6) { case 0: Sector::current()->add_object(new SnowBall(get_pos().x, get_pos().y+32, dir)); break; case 1: Sector::current()->add_object(new BouncingSnowball(get_pos().x, get_pos().y+32, dir)); break; case 2: Sector::current()->add_object(new MrBomb(get_pos().x, get_pos().y+32, dir)); break; case 3: Sector::current()->add_object(new MrIceBlock(get_pos().x, get_pos().y+32, dir)); break; case 4: Sector::current()->add_object(new PoisonIvy(get_pos().x, get_pos().y+32, dir)); break; + case 5: Sector::current()->add_object(new SnowSnail(get_pos().x, get_pos().y+32, dir)); break; } } }