… | |
… | |
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 | |
|
|
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 | |