fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / badguy / stumpy.cpp
index 4f0fd53..282b3a6 100644 (file)
@@ -59,7 +59,8 @@ Stumpy::activate()
 {
   switch (mystate) {
     case STATE_INVINCIBLE:
-      WalkingBadguy::activate();
+      sprite->set_action(dir == LEFT ? "dizzy-left" : "dizzy-right");
+      bbox.set_size(sprite->get_current_hitbox_width(), sprite->get_current_hitbox_height());
       physic.set_velocity_x(0);
       break;
     case STATE_NORMAL:
@@ -163,4 +164,3 @@ Stumpy::collision_badguy(BadGuy& badguy, const CollisionHit& hit)
 }
 
 IMPLEMENT_FACTORY(Stumpy, "stumpy")
-