version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.19 2001/04/21 04:26:09 mwedel Exp $"; | | * "$Id: monster.c,v 1.20 2001/05/02 07:26:51 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
void monster_check_pickup(object *monster) { | | void monster_check_pickup(object *monster) { |
object *tmp,*next; | | object *tmp,*next; |
#if 0 | | int next_tag; |
object *outofdate; | | |
#endif | | |
for(tmp=monster->below;tmp!=NULL;tmp=next) { | | for(tmp=monster->below;tmp!=NULL;tmp=next) { |
next=tmp->below; | | next=tmp->below; |
| | if (next) next_tag = next->count; |
if (monster_can_pick(monster,tmp)) { | | if (monster_can_pick(monster,tmp)) { |
remove_ob(tmp); | | remove_ob(tmp); |
tmp = insert_ob_in_ob(tmp,monster); | | tmp = insert_ob_in_ob(tmp,monster); |
(void) monster_check_apply(monster,tmp); | | (void) monster_check_apply(monster,tmp); |
} | | } |
| | /* We could try to re-establish the cycling, of the space, but probably |
| | * not a big deal to just bail out. |
| | */ |
| | if (next && was_destroyed(next, next_tag)) return; |
} | | } |
} | | } |
| | |