version 1.45 | | version 1.46 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.45 2002/12/12 21:52:52 garbled Exp $"; | | * "$Id: time.c,v 1.46 2002/12/13 05:09:49 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
op->stats.wc = op->stats.sp; | | op->stats.wc = op->stats.sp; |
op->stats.dam= op->stats.hp; | | op->stats.dam= op->stats.hp; |
op->attacktype = op->stats.grace; | | op->attacktype = op->stats.grace; |
| | if (op->slaying != NULL) |
| | free(op->slaying); |
| | if (op->spellarg != NULL) { |
| | op->slaying = strdup(op->spellarg); |
| | free(op->spellarg); |
| | } else |
| | op->slaying = NULL; |
/* Reset these to zero, so that CAN_MERGE will work properly */ | | /* Reset these to zero, so that CAN_MERGE will work properly */ |
| | op->spellarg = NULL; |
op->stats.sp = 0; | | op->stats.sp = 0; |
op->stats.hp = 0; | | op->stats.hp = 0; |
op->stats.grace = 0; | | op->stats.grace = 0; |
| | op->level = 0; |
op->face=op->arch->clone.face; | | op->face=op->arch->clone.face; |
op->owner=NULL; /* So that stopped arrows will be saved */ | | op->owner=NULL; /* So that stopped arrows will be saved */ |
update_object (op,UP_OBJ_FACE); | | update_object (op,UP_OBJ_FACE); |