… | |
… | |
2639 | object::open_container (object *new_container) |
2639 | object::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 | |