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.131 by root, Sat Feb 10 15:20:23 2007 UTC vs.
Revision 1.132 by root, Sat Feb 10 21:01:09 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
2647 if (object *old_container = container) 2644 if (object *old_container = container)
2648 { 2645 {
2649 if (INVOKE_OBJECT (CLOSE, old_container, ARG_OBJECT (this))) 2646 if (INVOKE_OBJECT (CLOSE, old_container, ARG_OBJECT (this)))
2650 return; 2647 return;
2651 2648
2677 closer->flag [FLAG_NO_MAP_SAVE] = 1; 2674 closer->flag [FLAG_NO_MAP_SAVE] = 1;
2678 new_container->insert (closer); 2675 new_container->insert (closer);
2679 } 2676 }
2680#endif 2677#endif
2681 2678
2679 new_draw_info_format (NDI_UNIQUE, 0, this, "You open %s.", query_name (new_container));
2680
2682 new_container->flag [FLAG_APPLIED] = 1; 2681 new_container->flag [FLAG_APPLIED] = 1;
2683 container = new_container; 2682 container = new_container;
2684 2683
2685 esrv_update_item (UPD_FLAGS, this, new_container); 2684 esrv_update_item (UPD_FLAGS, this, new_container);
2686 esrv_send_inventory (this, new_container); 2685 esrv_send_inventory (this, new_container);
2687 new_draw_info_format (NDI_UNIQUE, 0, this, "You open %s.", query_name (new_container));
2688 } 2686 }
2689} 2687}
2690 2688
2691 2689

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines