version 1.124 | | version 1.125 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.124 2005/05/07 16:07:26 ryo_saeba Exp $"; | | * "$Id: apply.c,v 1.125 2005/05/21 17:18:23 akirschbaum Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
*/ | | */ |
if (!strcmp(CONV_FROM(converter),"money")) { | | if (!strcmp(CONV_FROM(converter),"money")) { |
int cost; | | int cost; |
| | |
| | if(item->type!=MONEY) |
| | return 0; |
| | |
nr=(item->nrof*item->value)/CONV_NEED(converter); | | nr=(item->nrof*item->value)/CONV_NEED(converter); |
if (!nr) return 0; | | if (!nr) return 0; |
cost=nr*CONV_NEED(converter)/item->value; | | cost=nr*CONV_NEED(converter)/item->value; |