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.218 by root, Wed Apr 23 07:25:54 2008 UTC vs.
Revision 1.219 by root, Wed Apr 23 21:09:10 2008 UTC

1025void 1025void
1026object::destroy (bool destroy_inventory) 1026object::destroy (bool destroy_inventory)
1027{ 1027{
1028 if (destroyed ()) 1028 if (destroyed ())
1029 return; 1029 return;
1030
1031 if (!is_head () && !head->destroyed ())
1032 {
1033 LOG (llevError | logBacktrace, "tried to destroy the tail of an object");
1034 head->destroy (destroy_inventory);
1035 }
1030 1036
1031 destroy_inv (!destroy_inventory); 1037 destroy_inv (!destroy_inventory);
1032 1038
1033 if (is_head ()) 1039 if (is_head ())
1034 if (sound_destroy) 1040 if (sound_destroy)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines