version 1.28 | | version 1.29 |
---|
| | |
/* | | /* |
* static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
* "$Id: shop.c,v 1.28 2004/04/25 07:17:40 mwedel Exp $"; | | * "$Id: shop.c,v 1.29 2004/05/03 21:38:48 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
* reflect values (potion charisma list for 1250 gold) | | * reflect values (potion charisma list for 1250 gold) |
*/ | | */ |
if(flag==F_BUY) | | if(flag==F_BUY) |
val=(4.0*(float)val*(1.0+diff)); | | val=(4*val*(long)(1000*(1+diff)))/1000; |
else if (flag==F_SELL) | | else if (flag==F_SELL) |
val=(4.0*(float)val*(1.0-diff)); | | val=(4*val*(long)(1000*(1-diff)))/1000; |
else val *=4; | | else val *=4; |
} | | } |
| | |