- make badguys bounce up when bumped from beneath
authorRyan Flegel <rflegel@gmail.com>
Fri, 30 Apr 2004 07:25:37 +0000 (07:25 +0000)
committerRyan Flegel <rflegel@gmail.com>
Fri, 30 Apr 2004 07:25:37 +0000 (07:25 +0000)
SVN-Revision: 859

src/badguy.cpp

index 93b2c07..8486f3a 100644 (file)
@@ -786,7 +786,8 @@ BadGuy::bump()
   if(kind == BAD_FLAME || kind == BAD_BOMB || kind == BAD_FISH
       || kind == BAD_FLYINGSNOWBALL)
     return;
-  
+
+  physic.set_velocity_y(3);
   kill_me(25);
 }
 
@@ -912,7 +913,6 @@ BadGuy::kill_me(int score)
   }
   
   physic.enable_gravity(true);
-  physic.set_velocity_y(0);
 
   /* Gain some points: */
     World::current()->add_score(base.x - scroll_x, base.y,