version 1.43 | | version 1.44 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.43 2001/11/06 03:39:31 mwedel Exp $"; | | * "$Id: object.c,v 1.44 2001/11/21 18:12:25 avogl 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 |