Difference for common/readable.c from version 1.8 to 1.9


version 1.8 version 1.9
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_readable_c =   * static char *rcsid_readable_c =
  *   "$Id: readable.c,v 1.8 2001/10/30 00:49:02 michtoen Exp $";   *   "$Id: readable.c,v 1.9 2001/10/30 02:30:19 michtoen Exp $";
  */   */
   
 /*  /*
Line 1437
 
Line 1437
        sprintf (buf, "%s The %s of %s", buf, name, art->item->name);         sprintf (buf, "%s The %s of %s", buf, name, art->item->name);
   
    /* chance of finding */     /* chance of finding */
    chance = (int) ((float)100 * ((float) art->chance / (float)al->total_chance));     chance = 100 * ((float) art->chance / al->total_chance);
    if (chance >= 20)     if (chance >= 20)
        sprintf (sbuf, "an uncommon");         sprintf (sbuf, "an uncommon");
    else if (chance >= 10)     else if (chance >= 10)
Line 1516
 
Line 1516
      */       */
     do      do
       {        {
    if ((spells[i].books || prayers) && spells[i].cleric == (unsigned int) prayers     if ((spells[i].books || prayers) && spells[i].cleric == prayers
        && (pnum & spells[i].path))         && (pnum & spells[i].path))
      {       {
  /* book level determines max spell level to show    /* book level determines max spell level to show
Line 1907
 
Line 1907
        strcat (retbuf, buf);         strcat (retbuf, buf);
    level--;     level--;
       }        }
     if (strlen (retbuf) == (size_t) introlen)      if (strlen (retbuf) == introlen)
       { /* we got no information beyond the preamble! */        { /* we got no information beyond the preamble! */
    strcat (retbuf, " [Unfortunately the rest of the information is\n");     strcat (retbuf, " [Unfortunately the rest of the information is\n");
    strcat (retbuf, "  hopelessly garbled!]\n ---\n");     strcat (retbuf, "  hopelessly garbled!]\n ---\n");


Legend:
line(s) removed in v.1.8 
line(s) changed
 line(s) added in v.1.9

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