version 1.7 | | version 1.8 |
---|
| | |
/* | | /* |
* static char *rcsid_time_c = | | * static char *rcsid_time_c = |
* "$Id: time.c,v 1.7 2000/06/06 07:03:25 cvs Exp $"; | | * "$Id: time.c,v 1.8 2000/06/08 16:08:42 jec Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
prev=op; | | prev=op; |
at=at->more; | | at=at->more; |
} | | } |
if(gen->stats.food&&!--(gen->stats.food)) { | | |
remove_ob(gen); | | |
free_object(gen); | | |
} | | |
} | | } |
| | |
void regenerate_rod(object *rod) { | | void regenerate_rod(object *rod) { |
| | |
object *tmp; | | object *tmp; |
| | |
if(op->map==NULL) { | | if(op->map==NULL) { |
LOG(llevError,"Arrow had no map.\n"); | | LOG(llevDebug,"Arrow had no map.\n"); |
remove_ob(op); | | remove_ob(op); |
free_object(op); | | free_object(op); |
return; | | return; |
| | |
{ op->stats.hp=-1;return;} | | { op->stats.hp=-1;return;} |
tmp=arch_to_object(op->other_arch); | | tmp=arch_to_object(op->other_arch); |
if(op->slaying) { | | if(op->slaying) { |
| | if (tmp->name) free_string (tmp->name); |
| | if (tmp->title) free_string (tmp->title); |
tmp->name = add_string(op->slaying); | | tmp->name = add_string(op->slaying); |
tmp->title = add_string(op->slaying); | | tmp->title = add_string(op->slaying); |
} | | } |