version 1.14 | | version 1.14.2.1 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.14 2001/05/02 07:26:51 mwedel Exp $"; | | * "$Id: item.c,v 1.14.2.1 2001/05/23 04:27:53 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
int flag=0; | | int flag=0; |
| | |
if (out_of_map(op->map, op->x+dx, op->y+dy)) return; | | if (out_of_map(op->map, op->x+dx, op->y+dy)) return; |
| | #if 0 |
/* put player back on top */ | | /* put player back on top */ |
if(op->above!=NULL) { | | if(op->above!=NULL) { |
SET_FLAG (op, FLAG_NO_APPLY); | | SET_FLAG (op, FLAG_NO_APPLY); |
| | |
tmp=tmp->above); | | tmp=tmp->above); |
else | | else |
tmp=op->below; | | tmp=op->below; |
| | #else |
| | for(tmp=get_map_ob(op->map,op->x+dx,op->y+dy);tmp!=NULL&&tmp->above!=NULL; |
| | tmp=tmp->above); |
| | #endif |
for ( ; tmp != NULL; tmp=tmp->below ) { | | for ( ; tmp != NULL; tmp=tmp->below ) { |
if (tmp->invisible && !QUERY_FLAG(op, FLAG_WIZ)) continue; | | if (tmp->invisible && !QUERY_FLAG(op, FLAG_WIZ)) continue; |
| | |