ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/readable.C
(Generate patch)

Comparing deliantra/server/common/readable.C (file contents):
Revision 1.13 by root, Tue Dec 12 21:39:56 2006 UTC vs.
Revision 1.14 by pippijn, Tue Jan 2 23:39:21 2007 UTC

657 if (did_init_msgfile) 657 if (did_init_msgfile)
658 return; 658 return;
659 did_init_msgfile = 1; 659 did_init_msgfile = 1;
660 660
661 sprintf (fname, "%s/messages", settings.datadir); 661 sprintf (fname, "%s/messages", settings.datadir);
662 LOG (llevDebug, "Reading messages from %s...", fname); 662 LOG (llevDebug, "Reading messages from %s...\n", fname);
663 663
664 if ((fp = open_and_uncompress (fname, 0, &comp)) != NULL) 664 if ((fp = open_and_uncompress (fname, 0, &comp)) != NULL)
665 { 665 {
666 linked_char *tmp = NULL; 666 linked_char *tmp = NULL;
667 667
677 if (!strncmp (cp, "ENDMSG", 6)) 677 if (!strncmp (cp, "ENDMSG", 6))
678 { 678 {
679 if (strlen (msgbuf) > BOOK_BUF) 679 if (strlen (msgbuf) > BOOK_BUF)
680 { 680 {
681 LOG (llevDebug, "Warning: this string exceeded max book buf size:"); 681 LOG (llevDebug, "Warning: this string exceeded max book buf size:");
682 LOG (llevDebug, " %s", msgbuf); 682 LOG (llevDebug, " %s\n", msgbuf);
683 } 683 }
684 tmp->name = msgbuf; 684 tmp->name = msgbuf;
685 tmp->next = first_msg; 685 tmp->next = first_msg;
686 first_msg = tmp; 686 first_msg = tmp;
687 nrofmsg++; 687 nrofmsg++;
702 } 702 }
703 close_and_delete (fp, comp); 703 close_and_delete (fp, comp);
704 } 704 }
705 705
706#ifdef BOOK_MSG_DEBUG 706#ifdef BOOK_MSG_DEBUG
707 LOG (llevDebug, "\ninit_info_listfile() got %d messages.\n", nrofmsg); 707 LOG (llevDebug, "init_info_listfile() got %d messages.\n", nrofmsg);
708#endif 708#endif
709 LOG (llevDebug, "done.\n"); 709 LOG (llevDebug, "done.\n");
710} 710}
711 711
712 712
788 book->next = bl->first_book; 788 book->next = bl->first_book;
789 bl->first_book = book; 789 bl->first_book = book;
790 bl->number++; 790 bl->number++;
791 } 791 }
792 } 792 }
793 LOG (llevDebug, " book archives(used/avail): "); 793 LOG (llevDebug, "book archives(used/avail): \n");
794 for (bl = booklist, i = 0; bl != NULL && i < sizeof (max_titles) / sizeof (*max_titles); bl = bl->next, i++) 794 for (bl = booklist, i = 0; bl != NULL && i < sizeof (max_titles) / sizeof (*max_titles); bl = bl->next, i++)
795 { 795 {
796 LOG (llevDebug, "(%d/%d)", bl->number, max_titles[i]); 796 LOG (llevDebug, "(%d/%d)", bl->number, max_titles[i]);
797 } 797 }
798 LOG (llevDebug, "\n"); 798 LOG (llevDebug, "\n");
853 if (did_this) 853 if (did_this)
854 return; 854 return;
855 855
856 did_this = 1; 856 did_this = 1;
857 857
858 LOG (llevDebug, "Initializing reading data..."); 858 LOG (llevDebug, "Initialising reading data...\n");
859 init_msgfile (); 859 init_msgfile ();
860 init_book_archive (); 860 init_book_archive ();
861 init_mon_info (); 861 init_mon_info ();
862 LOG (llevDebug, " Done\n"); 862 LOG (llevDebug, " Done\n");
863 863

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines