Difference for common/recipe.c from version 1.3 to 1.4


version 1.3 version 1.4
Line 570
 
Line 570
      
   if (fl->total_chance > 0) {    if (fl->total_chance > 0) {
     r=RANDOM()%fl->total_chance;      r=RANDOM()%fl->total_chance;
     printf("  r = %d\n", r);  
     for (rp=fl->items;rp;rp=rp->next) {      for (rp=fl->items;rp;rp=rp->next) {
       r -= rp->chance;        r -= rp->chance;
       if (r<0) break;        if (r<0) break;


Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4

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