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.130 by root, Sat Feb 10 01:52:25 2007 UTC vs.
Revision 1.131 by root, Sat Feb 10 15:20:23 2007 UTC

2639object::open_container (object *new_container) 2639object::open_container (object *new_container)
2640{ 2640{
2641 if (container == new_container) 2641 if (container == new_container)
2642 return; 2642 return;
2643 2643
2644 if (contr && contr->ns)
2645 contr->ns->floorbox_reset ();
2646
2644 if (object *old_container = container) 2647 if (object *old_container = container)
2645 { 2648 {
2646 if (INVOKE_OBJECT (CLOSE, old_container, ARG_OBJECT (this))) 2649 if (INVOKE_OBJECT (CLOSE, old_container, ARG_OBJECT (this)))
2647 return; 2650 return;
2648 2651
2678 2681
2679 new_container->flag [FLAG_APPLIED] = 1; 2682 new_container->flag [FLAG_APPLIED] = 1;
2680 container = new_container; 2683 container = new_container;
2681 2684
2682 esrv_update_item (UPD_FLAGS, this, new_container); 2685 esrv_update_item (UPD_FLAGS, this, new_container);
2686 esrv_send_inventory (this, new_container);
2683 new_draw_info_format (NDI_UNIQUE, 0, this, "You open %s.", query_name (new_container)); 2687 new_draw_info_format (NDI_UNIQUE, 0, this, "You open %s.", query_name (new_container));
2684 } 2688 }
2685
2686 if (contr && contr->ns)
2687 contr->ns->floorbox_update ();
2688} 2689}
2689 2690
2690 2691

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines