… | |
… | |
105 | struct object *ACC (RW, head); /* Points to the main object of a large body */ |
105 | struct object *ACC (RW, head); /* Points to the main object of a large body */ |
106 | struct mapstruct *ACC (RW, map); /* Pointer to the map in which this object is present */ |
106 | struct mapstruct *ACC (RW, map); /* Pointer to the map in which this object is present */ |
107 | }; |
107 | }; |
108 | |
108 | |
109 | // these are being copied |
109 | // these are being copied |
110 | struct object_copy:attachable<object> |
110 | struct object_copy : attachable<object> |
111 | { |
111 | { |
112 | /* These get an extra add_refcount(), after having been copied by memcpy(). |
112 | /* These get an extra add_refcount(), after having been copied by memcpy(). |
113 | * All fields beow this point are automatically copied by memcpy. If |
113 | * All fields beow this point are automatically copied by memcpy. If |
114 | * adding something that needs a refcount updated, make sure you modify |
114 | * adding something that needs a refcount updated, make sure you modify |
115 | * copy_object to do so. Everything below here also gets cleared |
115 | * copy_object to do so. Everything below here also gets cleared |