Removed trailing whitespace from all *.?pp files
[supertux.git] / src / badguy / goldbomb.cpp
index f87f605..6b626a6 100644 (file)
@@ -31,7 +31,8 @@ GoldBomb::GoldBomb(const Reader& reader) :
   WalkingBadguy(reader, "images/creatures/gold_bomb/gold_bomb.sprite", "left", "right"),
   tstate(STATE_NORMAL),
   grabbed(false),
-  grabber(NULL)
+  grabber(NULL),
+  ticking()
 {
   walk_speed = 80;
   max_drop_height = 16;
@@ -152,7 +153,7 @@ GoldBomb::kill_fall()
   // GoldBomb class.
   if (grabber != NULL) {
     Player* player = dynamic_cast<Player*>(grabber);
-    
+
     if (player)
       player->stop_grabbing();
   }
@@ -160,7 +161,7 @@ GoldBomb::kill_fall()
   if(is_valid()) {
     remove_me();
     Sector::current()->add_object(new Explosion(get_bbox().get_middle()));
-    Sector::current()->add_object(new CoinExplode(get_pos() + Vector (0, -40), 1));
+    Sector::current()->add_object(new CoinExplode(get_pos() + Vector (0, -40)));
   }
 
   run_dead_script();
@@ -221,7 +222,6 @@ GoldBomb::freeze()
 {
   if(tstate == STATE_NORMAL){
     WalkingBadguy::freeze();
-    sprite->set_action(dir == LEFT ? "iced-left" : "iced-right");
   }
 }