From: Wolfgang Becker Date: Fri, 11 Apr 2008 20:02:08 +0000 (+0000) Subject: Dead snowballs don't walk around. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=39cedc9876ca9756ad5daeedbe29537498a668dc;p=supertux.git Dead snowballs don't walk around. SVN-Revision: 5387 --- diff --git a/src/badguy/captainsnowball.cpp b/src/badguy/captainsnowball.cpp index a6975dab6..a9b079829 100644 --- a/src/badguy/captainsnowball.cpp +++ b/src/badguy/captainsnowball.cpp @@ -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