Difference for common/treasure.c from version 1.20 to 1.21


version 1.20 version 1.21
Line 1
 
Line 1
   
 /*  /*
  * static char *rcs_treasure_c =   * static char *rcs_treasure_c =
  *   "$Id: treasure.c,v 1.20 2001/10/30 00:49:02 michtoen Exp $";   *   "$Id: treasure.c,v 1.21 2001/10/30 02:30:19 michtoen Exp $";
  */   */
   
 /*  /*
Line 539
 
Line 539
  case 4:   case 4:
  case 5:   case 5:
  case 6:   case 6:
      set_attr_value(&op->stats, r, (signed char) (bonus + get_attr_value(&op->stats,r)));       set_attr_value(&op->stats, r, bonus + get_attr_value(&op->stats,r));
      break;       break;
   
  case 7:   case 7:
Line 1417
 
Line 1417
  free_string(item->name);   free_string(item->name);
  item->name=add_string(tmpbuf);   item->name=add_string(tmpbuf);
  /* weight is FLESH weight/100 * donor */   /* weight is FLESH weight/100 * donor */
  if((item->weight = (signed long) (((float)item->weight/100.0) * (float)donor->weight))==0)   if((item->weight = (float) (item->weight/100.0) * donor->weight)==0)
  item->weight=1;   item->weight=1;
   
  /* value is multiplied by level of donor */   /* value is multiplied by level of donor */


Legend:
line(s) removed in v.1.20 
line(s) changed
 line(s) added in v.1.21

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