From: Ryan Flegel Date: Fri, 30 Apr 2004 07:25:37 +0000 (+0000) Subject: - make badguys bounce up when bumped from beneath X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=782a5ba2cf73a2360bca40c935f08fb674b8d739;p=supertux.git - make badguys bounce up when bumped from beneath SVN-Revision: 859 --- diff --git a/src/badguy.cpp b/src/badguy.cpp index 93b2c0752..8486f3a95 100644 --- a/src/badguy.cpp +++ b/src/badguy.cpp @@ -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,