version 1.44 | | version 1.45 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.44 2001/11/21 18:12:25 avogl Exp $"; | | * "$Id: object.c,v 1.45 2001/11/26 17:52:25 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#endif | | #endif |
| | |
tag = op->count; | | tag = op->count; |
| | for(tmp=GET_MAP_OB(op->map, op->x, op->y);tmp!=NULL;tmp=tmp->above) { |
/* The objects have to be checked from top to bottom. | | |
* Hence, we first go to the top: */ | | |
for (tmp=GET_MAP_OB(op->map, op->x, op->y); tmp!=NULL && | | |
tmp->above!=NULL; tmp=tmp->above); | | |
| | |
for(;tmp!=NULL; tmp=tmp->below) { | | |
if (tmp == op) continue; /* Can't apply yourself */ | | if (tmp == op) continue; /* Can't apply yourself */ |
| | |
/* Trim the search when we find the first other spell effect | | /* Trim the search when we find the first other spell effect |