Disable acceleration in kill_fall().
authorRyan Flegel <rflegel@gmail.com>
Sun, 15 Jun 2008 19:27:44 +0000 (19:27 +0000)
committerRyan Flegel <rflegel@gmail.com>
Sun, 15 Jun 2008 19:27:44 +0000 (19:27 +0000)
SVN-Revision: 5574

src/badguy/badguy.cpp

index fd3ef26..16e5331 100644 (file)
@@ -346,6 +346,7 @@ BadGuy::kill_fall()
   sound_manager->play("sounds/fall.wav", get_pos());
   if (countMe) Sector::current()->get_level()->stats.badguys++;
   physic.set_velocity_y(0);
+  physic.set_acceleration_y(0);
   physic.enable_gravity(true);
   set_state(STATE_FALLING);