version 1.103 | | version 1.104 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.103 2005/10/01 16:36:35 ryo_saeba Exp $"; | | * "$Id: object.c,v 1.104 2005/10/07 17:54:48 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* | | /* |
* create clone from object to another | | * create clone from object to another |
*/ | | */ |
object *ObjectCreateClone (object *asrc) { | | object *object_create_clone (object *asrc) { |
object *dst = NULL,*tmp,*src,*part,*prev, *item; | | object *dst = NULL,*tmp,*src,*part,*prev, *item; |
| | |
if(!asrc) return NULL; | | if(!asrc) return NULL; |
| | |
} | | } |
/*** copy inventory ***/ | | /*** copy inventory ***/ |
for(item = src->inv; item; item = item->below) { | | for(item = src->inv; item; item = item->below) { |
(void) insert_ob_in_ob(ObjectCreateClone(item),dst); | | (void) insert_ob_in_ob(object_create_clone(item),dst); |
} | | } |
| | |
return dst; | | return dst; |