Difference for server/shop.c from version 1.28 to 1.29


version 1.28 version 1.29
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 189
 
Line 189
  * 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;
     }      }
   


Legend:
line(s) removed in v.1.28 
line(s) changed
 line(s) added in v.1.29

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:44