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.350 by root, Sun May 8 12:40:41 2011 UTC vs.
Revision 1.351 by elmex, Fri Jun 3 08:36:45 2011 UTC

1004 li->count = count; 1004 li->count = count;
1005 1005
1006 freelist = li; 1006 freelist = li;
1007 ++free_count; 1007 ++free_count;
1008} 1008}
1009
1010// special "grave" map used to store all removed objects
1011// till they can be destroyed - saves a lot of checks in the rest
1012// of the code
1013static struct freed_map
1014: maptile
1015{
1016 freed_map ()
1017 : maptile (3, 3)
1018 {
1019 path = "<freed objects map>";
1020 name = "/internal/freed_objects_map";
1021 no_drop = 1;
1022 no_reset = 1;
1023
1024 state = MAP_ACTIVE;
1025 }
1026
1027 ~freed_map ()
1028 {
1029 destroy ();
1030 }
1031} freed_map; // freed objects are moved here to avoid crashes
1032 1009
1033void 1010void
1034object::do_destroy () 1011object::do_destroy ()
1035{ 1012{
1036 if (flag [FLAG_IS_LINKED]) 1013 if (flag [FLAG_IS_LINKED])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines