… | |
… | |
110 | * pointers to all (hostile) monster objects */ |
110 | * pointers to all (hostile) monster objects */ |
111 | |
111 | |
112 | static int nrofmon = 0, need_to_write_bookarchive = 0; |
112 | static int nrofmon = 0, need_to_write_bookarchive = 0; |
113 | |
113 | |
114 | |
114 | |
115 | /* this is needed to keep track of status of initialization |
115 | /* this is needed to keep track of status of initialisation |
116 | * of the message file */ |
116 | * of the message file */ |
117 | static int nrofmsg = 0; |
117 | static int nrofmsg = 0; |
118 | |
118 | |
119 | /* first_msg is the started of the linked list of messages as read from |
119 | /* first_msg is the started of the linked list of messages as read from |
120 | * the messages file |
120 | * the messages file |
… | |
… | |
636 | |
636 | |
637 | } |
637 | } |
638 | |
638 | |
639 | /***************************************************************************** |
639 | /***************************************************************************** |
640 | * |
640 | * |
641 | * Start of initialization related functions. |
641 | * Start of initialisation related functions. |
642 | * |
642 | * |
643 | ****************************************************************************/ |
643 | ****************************************************************************/ |
644 | |
644 | |
645 | /* init_msgfile() - if not called before, initialize the info list |
645 | /* init_msgfile() - if not called before, initialise the info list |
646 | * reads the messages file into the list pointed to by first_msg |
646 | * reads the messages file into the list pointed to by first_msg |
647 | */ |
647 | */ |
648 | |
648 | |
649 | static void |
649 | static void |
650 | init_msgfile (void) |
650 | init_msgfile (void) |
… | |
… | |
708 | #endif |
708 | #endif |
709 | LOG (llevDebug, "done.\n"); |
709 | LOG (llevDebug, "done.\n"); |
710 | } |
710 | } |
711 | |
711 | |
712 | |
712 | |
713 | /* init_book_archive() - if not called before, initialize the info list |
713 | /* init_book_archive() - if not called before, initialise the info list |
714 | * This reads in the bookarch file into memory. bookarch is the file |
714 | * This reads in the bookarch file into memory. bookarch is the file |
715 | * created and updated across multiple runs of the program. |
715 | * created and updated across multiple runs of the program. |
716 | */ |
716 | */ |
717 | |
717 | |
718 | static void |
718 | static void |
… | |
… | |
835 | |
835 | |
836 | LOG (llevDebug, "init_mon_info() got %d monsters\n", nrofmon); |
836 | LOG (llevDebug, "init_mon_info() got %d monsters\n", nrofmon); |
837 | } |
837 | } |
838 | |
838 | |
839 | |
839 | |
840 | /* init_readable() - initialize linked lists utilized by |
840 | /* init_readable() - initialise linked lists utilized by |
841 | * message functions in tailor_readable_ob() |
841 | * message functions in tailor_readable_ob() |
842 | * |
842 | * |
843 | * This is the function called by the main routine to initialize |
843 | * This is the function called by the main routine to initialise |
844 | * all the readable information. |
844 | * all the readable information. |
845 | */ |
845 | */ |
846 | |
846 | |
847 | void |
847 | void |
848 | init_readable (void) |
848 | init_readable (void) |