version 1.174 | | version 1.175 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.174 2005/09/04 16:58:12 akirschbaum Exp $"; | | * "$Id: player.c,v 1.175 2005/09/17 13:24:48 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
remove_ob(op); | | remove_ob(op); |
op->x = env->x; | | op->x = env->x; |
op->y = env->y; | | op->y = env->y; |
| | if (env->type == PLAYER) |
| | esrv_del_item(env->contr, op->count); |
insert_ob_in_map(op, env->map, NULL,0); | | insert_ob_in_map(op, env->map, NULL,0); |
} | | } |
else if (op->inv) remove_unpaid_objects(op->inv, env); | | else if (op->inv) remove_unpaid_objects(op->inv, env); |
| | |
*/ | | */ |
| | |
for (tmp= get_map_ob(op->map, op->x, op->y); tmp; tmp=tmp->above) { | | for (tmp= get_map_ob(op->map, op->x, op->y); tmp; tmp=tmp->above) { |
if (tmp && tmp->type == SHOP_FLOOR) { | | if (tmp->type == SHOP_FLOOR) { |
remove_unpaid_objects(op->inv, op); | | remove_unpaid_objects(op->inv, op); |
| | break; |
} | | } |
} | | } |
| | |