version 1.3 | | version 1.4 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_item_c = | | * static char *rcsid_item_c = |
* "$Id: item.c,v 1.3 2000/05/24 05:48:51 cvs Exp $"; | | * "$Id: item.c,v 1.4 2000/05/26 09:50:53 jec Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
pl->ob->name, tag); | | pl->ob->name, tag); |
return; | | return; |
} | | } |
apply (pl->ob, op,0); | | player_apply (pl->ob, op, 0, 0); |
} | | } |
| | |
/* Client wants to apply some object. Lets do so. */ | | /* Client wants to apply some object. Lets do so. */ |
| | |
| | |
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(op->above!=NULL) { | | if(op->above!=NULL) { |
| | SET_FLAG (op, FLAG_NO_APPLY); |
remove_ob(op); | | remove_ob(op); |
insert_ob_in_map(op,op->map); | | insert_ob_in_map(op,op->map,NULL); |
| | CLEAR_FLAG (op, FLAG_NO_APPLY); |
} | | } |
if(dx||dy) | | if(dx||dy) |
for(tmp=get_map_ob(op->map,op->x+dx,op->y+dy);tmp!=NULL&&tmp->above!=NULL; | | for(tmp=get_map_ob(op->map,op->x+dx,op->y+dy);tmp!=NULL&&tmp->above!=NULL; |