Dead snowballs don't walk around.
authorWolfgang Becker <uafr@gmx.de>
Fri, 11 Apr 2008 20:02:08 +0000 (20:02 +0000)
committerWolfgang Becker <uafr@gmx.de>
Fri, 11 Apr 2008 20:02:08 +0000 (20:02 +0000)
SVN-Revision: 5387

src/badguy/captainsnowball.cpp

index a6975da..a9b0798 100644 (file)
@@ -46,8 +46,10 @@ void
 CaptainSnowball::collision_solid(const CollisionHit& hit)
 {
   WalkingBadguy::collision_solid(hit);
-  walk_speed = WALK_SPEED;
-  physic.set_velocity_x(dir == LEFT ? -walk_speed : walk_speed);
+  if( is_active() ){ 
+    walk_speed = WALK_SPEED;
+    physic.set_velocity_x(dir == LEFT ? -walk_speed : walk_speed);
+  }
 }
 
 bool