Added the snowsnail to the random mode of the dispenser.
authorOndřej Hošek <ondra.hosek@gmail.com>
Wed, 26 Oct 2005 20:24:03 +0000 (20:24 +0000)
committerOndřej Hošek <ondra.hosek@gmail.com>
Wed, 26 Oct 2005 20:24:03 +0000 (20:24 +0000)
SVN-Revision: 2920

src/badguy/dispenser.cpp

index 3b1d98b..b565bfe 100644 (file)
@@ -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;
       }
     }
   }