version 1.42 | | version 1.43 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.42 2001/11/04 20:22:55 michtoen Exp $"; | | * "$Id: object.c,v 1.43 2001/11/06 03:39:31 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
void copy_owner (object *op, object *clone) | | void copy_owner (object *op, object *clone) |
{ | | { |
object *owner = get_owner (clone); | | object *owner = get_owner (clone); |
if (owner == NULL) | | if (owner == NULL) { |
return; | | /* players don't have owners - they own themselves. Update |
| | * as appropriate. |
| | */ |
| | if (clone->type == PLAYER) owner=clone; |
| | else return; |
| | } |
set_owner_simple (op, owner); | | set_owner_simple (op, owner); |
| | |
if (clone->chosen_skill) | | if (clone->chosen_skill) |