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.176 by root, Fri Aug 10 11:02:43 2007 UTC vs.
Revision 1.177 by root, Sun Aug 12 13:10:00 2007 UTC

2668 old_container->flag [FLAG_APPLIED] = 0; 2668 old_container->flag [FLAG_APPLIED] = 0;
2669 container = 0; 2669 container = 0;
2670 2670
2671 esrv_update_item (UPD_FLAGS, this, old_container); 2671 esrv_update_item (UPD_FLAGS, this, old_container);
2672 new_draw_info_format (NDI_UNIQUE, 0, this, "You close %s.", query_name (old_container)); 2672 new_draw_info_format (NDI_UNIQUE, 0, this, "You close %s.", query_name (old_container));
2673 play_sound (sound_find ("chest_close"));
2673 } 2674 }
2674 2675
2675 if (new_container) 2676 if (new_container)
2676 { 2677 {
2677 if (INVOKE_OBJECT (OPEN, new_container, ARG_OBJECT (this))) 2678 if (INVOKE_OBJECT (OPEN, new_container, ARG_OBJECT (this)))
2693 new_container->flag [FLAG_APPLIED] = 1; 2694 new_container->flag [FLAG_APPLIED] = 1;
2694 container = new_container; 2695 container = new_container;
2695 2696
2696 esrv_update_item (UPD_FLAGS, this, new_container); 2697 esrv_update_item (UPD_FLAGS, this, new_container);
2697 esrv_send_inventory (this, new_container); 2698 esrv_send_inventory (this, new_container);
2699 play_sound (sound_find ("chest_open"));
2698 } 2700 }
2699} 2701}
2700 2702
2701object * 2703object *
2702object::force_find (const shstr name) 2704object::force_find (const shstr name)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines