version 1.46 | | version 1.47 |
---|
| | |
/* | | /* |
* static char *rcsid_object_c = | | * static char *rcsid_object_c = |
* "$Id: object.c,v 1.46 2001/11/27 04:33:46 michtoen Exp $"; | | * "$Id: object.c,v 1.47 2001/11/27 06:08:25 michtoen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
#if 0 | | #if 0 |
*/ | | */ |
| | |
#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 |
| | |
} | | } |
| | |
/*** end of object.c ***/ | | /*** end of object.c ***/ |
| | |