version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.23 2001/04/30 03:36:35 mwedel Exp $"; | | * "$Id: object.c,v 1.24 2001/04/30 06:34:28 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return NULL; | | return NULL; |
} | | } |
| | |
| | void clear_owner(object *op) |
| | { |
| | if (!op) return; |
| | |
| | if (op->owner && op->ownercount == op->owner->count) |
| | op->owner->refcount--; |
| | |
| | op->owner = NULL; |
| | op->ownercount = 0; |
| | } |
| | |
| | |
/* | | /* |
* Sets the owner of the first object to the second object. | | * Sets the owner of the first object to the second object. |
* Also checkpoints a backup id-scheme which detects freeing (and reusage) | | * Also checkpoints a backup id-scheme which detects freeing (and reusage) |
| | |
} | | } |
#endif | | #endif |
| | |
| | |
/* | | /* |
* Sets the owner and sets the skill and exp pointers to owner's current | | * Sets the owner and sets the skill and exp pointers to owner's current |
* skill and experience objects. | | * skill and experience objects. |