version 1.83 | | version 1.84 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.83 2006/07/02 15:32:35 tchize Exp $"; | | * "$Id: c_object.c,v 1.84 2006/07/29 08:39:29 ryo_saeba Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
#endif /* SAVE_INTERVAL */ | | #endif /* SAVE_INTERVAL */ |
| | |
| | |
| | if ( !QUERY_FLAG(tmp, FLAG_UNPAID) && tmp->type != MONEY ) { |
floor = get_map_ob (op->map, op->x, op->y); | | floor = get_map_ob (op->map, op->x, op->y); |
if( floor && floor->type == SHOP_FLOOR && | | while ( floor && floor->type != SHOP_FLOOR ) |
!QUERY_FLAG(tmp, FLAG_UNPAID) && tmp->type != MONEY) | | floor = floor->above; |
| | if ( floor ) |
sell_item(tmp,op); | | sell_item(tmp,op); |
| | } |
| | |
tmp->x = op->x; | | tmp->x = op->x; |
tmp->y = op->y; | | tmp->y = op->y; |