--- deliantra/server/common/object.C 2007/08/01 01:07:42 1.169 +++ deliantra/server/common/object.C 2007/08/01 20:44:11 1.172 @@ -962,7 +962,10 @@ if (destroy_inventory) destroy_inv (false); - play_sound (sound_die); + if (sound_destroy) + play_sound (sound_destroy); + else if (flag [FLAG_MONSTER]) + play_sound (sound_find ("monster_destroy")); // quick hack, too lazy to create a generic mechanism attachable::destroy (); } @@ -2732,9 +2735,3 @@ insert (force); } -void -object::play_sound (faceidx sound) const -{ - if (map) - map->play_sound (sound, x, y); -}