ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/object.C
(Generate patch)

Comparing deliantra/server/common/object.C (file contents):
Revision 1.168 by root, Thu Jul 26 00:27:07 2007 UTC vs.
Revision 1.172 by root, Wed Aug 1 20:44:11 2007 UTC

959 if (destroyed ()) 959 if (destroyed ())
960 return; 960 return;
961 961
962 if (destroy_inventory) 962 if (destroy_inventory)
963 destroy_inv (false); 963 destroy_inv (false);
964
965 if (sound_destroy)
966 play_sound (sound_destroy);
967 else if (flag [FLAG_MONSTER])
968 play_sound (sound_find ("monster_destroy")); // quick hack, too lazy to create a generic mechanism
964 969
965 attachable::destroy (); 970 attachable::destroy ();
966} 971}
967 972
968/* 973/*
2728 force->flag [FLAG_APPLIED] = true; 2733 force->flag [FLAG_APPLIED] = true;
2729 2734
2730 insert (force); 2735 insert (force);
2731} 2736}
2732 2737
2733void
2734object::play_sound (faceidx sound) const
2735{
2736 if (map)
2737 map->play_sound (sound, x, y);
2738}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines