version 1.172 | | version 1.173 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.172 2006/08/10 06:13:18 qal21 Exp $"; | | * "$Id: apply.c,v 1.173 2006/08/12 04:09:42 lalo Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
(CONV_NEED(converter)&&CONV_NEED(converter)>item->nrof)) | | (CONV_NEED(converter)&&CONV_NEED(converter)>item->nrof)) |
return 0; | | return 0; |
| | |
| | /* silently burn unpaid items (only if they match what we want) */ |
| | if(QUERY_FLAG(item, FLAG_UNPAID)) { |
| | remove_ob(item); |
| | free_object(item); |
| | item = create_archetype("burnout"); |
| | if (item != NULL) |
| | insert_ob_in_map_at(item, converter->map, converter, |
| | 0, converter->x, converter->y); |
| | return 1; |
| | } |
| | |
if(CONV_NEED(converter)) { | | if(CONV_NEED(converter)) { |
nr=item->nrof/CONV_NEED(converter); | | nr=item->nrof/CONV_NEED(converter); |
decrease_ob_nr(item,nr*CONV_NEED(converter)); | | decrease_ob_nr(item,nr*CONV_NEED(converter)); |