Difference for common/readable.c from version 1.13 to 1.14


version 1.13 version 1.14
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_readable_c =   * static char *rcsid_readable_c =
  *   "$Id: readable.c,v 1.13 2003/09/13 05:01:30 mwedel Exp $";   *   "$Id: readable.c,v 1.14 2004/10/09 19:26:44 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 1062
 
Line 1062
        else         else
  {   {
      int     numb, maxnames = max_titles[msgtype];       int     numb, maxnames = max_titles[msgtype];
      char    old_title[MAX_BUF], old_name[MAX_BUF];       char *old_title;
        char *old_name;
   
      if (book->title)                      old_title = book->title ? add_string(book->title) : NULL;
  strcpy (old_title, book->title);                      old_name = add_string(book->name);
      strcpy(old_name, book->name);  
   
      /* some pre-generated books have title already set (from       /* some pre-generated books have title already set (from
       * maps), also don't bother looking for unique title if        * maps), also don't bother looking for unique title if
Line 1086
 
Line 1086
    LOG (llevDebug, "titles for list %d full (%d possible).\n",     LOG (llevDebug, "titles for list %d full (%d possible).\n",
         msgtype, maxnames);          msgtype, maxnames);
 #endif  #endif
      if (old_title != NULL)
          free_string(old_title);
      free_string(old_name);
    break;     break;
        }         }
      /* shouldnt change map-maker books */       /* shouldnt change map-maker books */
Line 1119
 
Line 1122
    free_string (book->title);     free_string (book->title);
    if (old_title!=NULL)     if (old_title!=NULL)
        book->title = add_string (old_title);         book->title = add_string (old_title);
   
      if (RANDOM () % 4) {
    /* Lets give the book a description to individualize it some */     /* Lets give the book a description to individualize it some */
    if (RANDOM () % 4)   char new_name[MAX_BUF];
        sprintf (old_name, "%s %s", book_descrpt[RANDOM () % nbr], old_name);   snprintf (new_name, MAX_BUF, "%s %s", book_descrpt[RANDOM () % nbr], old_name);
   
        book->name = add_string (new_name);
      } else {
    book->name = add_string (old_name);     book->name = add_string (old_name);
        }         }
      else if (book->title && strlen (book->msg) > 5) /* archive if long msg texts */         }
        else if (book->title && strlen (book->msg) > 5) { /* archive if long msg texts */
  add_book_to_list (book, msgtype);   add_book_to_list (book, msgtype);
        }
   
        if (old_title != NULL)
            free_string(old_title);
        free_string(old_name);
   
  }   }
        break;         break;


Legend:
line(s) removed in v.1.13 
line(s) changed
 line(s) added in v.1.14

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