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.215 by root, Tue Apr 22 07:28:05 2008 UTC vs.
Revision 1.216 by root, Tue Apr 22 23:50:23 2008 UTC

2619 if (object *closer = old_container->inv) 2619 if (object *closer = old_container->inv)
2620 if (closer->type == CLOSE_CON) 2620 if (closer->type == CLOSE_CON)
2621 closer->destroy (); 2621 closer->destroy ();
2622#endif 2622#endif
2623 2623
2624 old_container->flag [FLAG_APPLIED] = 0; 2624 old_container->flag [FLAG_APPLIED] = false;
2625 container = 0; 2625 container = 0;
2626 2626
2627 esrv_update_item (UPD_FLAGS, this, old_container); 2627 esrv_update_item (UPD_FLAGS, this, old_container);
2628 new_draw_info_format (NDI_UNIQUE, 0, this, "You close %s.", query_name (old_container)); 2628 new_draw_info_format (NDI_UNIQUE, 0, this, "You close %s.", query_name (old_container));
2629 play_sound (sound_find ("chest_close")); 2629 play_sound (sound_find ("chest_close"));
2645 } 2645 }
2646#endif 2646#endif
2647 2647
2648 new_draw_info_format (NDI_UNIQUE, 0, this, "You open %s.", query_name (new_container)); 2648 new_draw_info_format (NDI_UNIQUE, 0, this, "You open %s.", query_name (new_container));
2649 2649
2650 new_container->flag [FLAG_APPLIED] = 1; 2650 new_container->flag [FLAG_APPLIED] = true;
2651 container = new_container; 2651 container = new_container;
2652 2652
2653 esrv_update_item (UPD_FLAGS, this, new_container); 2653 esrv_update_item (UPD_FLAGS, this, new_container);
2654 esrv_send_inventory (this, new_container); 2654 esrv_send_inventory (this, new_container);
2655 play_sound (sound_find ("chest_open")); 2655 play_sound (sound_find ("chest_open"));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines