version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_pets_c = | | * static char *rcsid_pets_c = |
* "$Id: pets.c,v 1.23 2004/05/04 07:14:53 mwedel Exp $"; | | * "$Id: pets.c,v 1.24 2004/05/12 05:52:39 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
head->direction = dir; | | head->direction = dir; |
| | |
/* need to change some monster attr to prevent problems/crashing */ | | /* need to change some monster attr to prevent problems/crashing */ |
if(head->last_heal) head->last_heal=0; | | head->last_heal=0; |
if(head->last_eat) head->last_eat=0; | | head->last_eat=0; |
if(head->last_grace) head->last_grace=0; | | head->last_grace=0; |
if(head->last_sp) head->last_sp=0; | | head->last_sp=0; |
| | head->other_arch=NULL; |
| | head->stats.exp = 0; |
| | CLEAR_FLAG(head,FLAG_CHANGING); |
| | CLEAR_FLAG(head,FLAG_STAND_STILL); |
| | CLEAR_FLAG(head,FLAG_GENERATOR); |
| | CLEAR_FLAG(head,FLAG_SPLITTING); |
if(head->attacktype&AT_GHOSTHIT) head->attacktype=(AT_PHYSICAL|AT_DRAIN); | | if(head->attacktype&AT_GHOSTHIT) head->attacktype=(AT_PHYSICAL|AT_DRAIN); |
if(head->other_arch) head->other_arch=NULL; | | |
if(QUERY_FLAG(head,FLAG_CHANGING)) CLEAR_FLAG(head,FLAG_CHANGING); | | |
if(QUERY_FLAG(head,FLAG_STAND_STILL)) CLEAR_FLAG(head,FLAG_STAND_STILL); | | |
if(QUERY_FLAG(head,FLAG_GENERATOR)) CLEAR_FLAG(head,FLAG_GENERATOR); | | |
if(QUERY_FLAG(head,FLAG_SPLITTING)) CLEAR_FLAG(head,FLAG_SPLITTING); | | |
| | |
return head; | | return head; |
} | | } |
| | |
tmp->map = op->map; | | tmp->map = op->map; |
} | | } |
head->direction = dir; | | head->direction = dir; |
| | head->stats.exp = 0; |
head = insert_ob_in_map(head, head->map, op, 0); | | head = insert_ob_in_map(head, head->map, op, 0); |
if (head && head->randomitems) { | | if (head && head->randomitems) { |
object *tmp; | | object *tmp; |