make function more robust
[supertux.git] / src / badguy / badguy.cpp
index 6068bde..cef3304 100644 (file)
@@ -164,6 +164,8 @@ BadGuy::kill_squished(Player& player)
 void
 BadGuy::kill_fall()
 {
+  SoundManager::get()->play_sound(IDToSound(SND_FALL), this,
+      Sector::current()->player->get_pos());
   physic.set_velocity_y(0);
   physic.enable_gravity(true);
   set_state(STATE_FALLING);