--- deliantra/server/common/readable.c 2006/02/03 07:11:40 1.1.1.1 +++ deliantra/server/common/readable.c 2006/02/22 18:01:23 1.1.1.2 @@ -100,7 +100,7 @@ typedef struct namebytype { - char *name; /* generic name to call artifacts of this type */ + const char *name; /* generic name to call artifacts of this type */ int type; /* matching type */ } arttypename; @@ -154,7 +154,7 @@ PATH_LIGHT }; -static char *path_book_name[] = +static const char* const path_book_name[] = { "codex", "compendium", @@ -164,7 +164,7 @@ }; /* used by spellpath texts */ -static char *path_author[] = +static const char* const path_author[] = { "aether", "astral byways", @@ -209,7 +209,7 @@ {"Body Armour", ARMOUR} }; -static char *art_book_name[] = +static const char* const art_book_name[] = { "collection", "file", @@ -225,7 +225,7 @@ }; /* used by artifact texts */ -static char *art_author[] = +static const char* const art_author[] = { "ancient things", "artifacts", @@ -240,7 +240,7 @@ * Monster book information */ -static char *mon_book_name[] = +static const char* const mon_book_name[] = { "beastuary", "catalog", @@ -259,7 +259,7 @@ /* used by monster beastuary texts */ -static char *mon_author[] = +static const char* const mon_author[] = { "beasts", "creatures", @@ -280,7 +280,7 @@ * God book information */ -static char *gods_book_name[] = +static const char* const gods_book_name[] = { "devotional", "devout notes", @@ -295,7 +295,7 @@ }; /* used by gods texts */ -static char *gods_author[] = +static const char* const gods_author[] = { "cults", "joy", @@ -316,7 +316,7 @@ * Alchemy (formula) information */ -static char *formula_book_name[] = +static const char* const formula_book_name[] = { "cookbook", "formulary", @@ -329,7 +329,7 @@ }; /* this isn't used except for empty books */ -static char *formula_author[] = +static const char* const formula_author[] = { "Albertus Magnus", "alchemy", @@ -352,7 +352,7 @@ */ /* used by msg file and 'generic' books */ -static char *light_book_name[] = +static const char* const light_book_name[] = { "calendar", "datebook", @@ -369,7 +369,7 @@ "transcript" }; -static char *heavy_book_name[] = +static const char* const heavy_book_name[] = { "catalog", "compendium", @@ -384,7 +384,7 @@ /* used by 'generic' books */ -static char *book_author[] = +static const char* const book_author[] = { "Abdulah", "Al'hezred", @@ -430,7 +430,7 @@ "Zagy" }; -static char *book_descrpt[] = +static const char* const book_descrpt[] = { "ancient", "cryptic", @@ -895,7 +895,7 @@ */ static title * -find_title (object *book, int msgtype) +find_title (const object *book, int msgtype) { title *t = NULL; titlelist *tl = get_titlelist (msgtype); @@ -1029,7 +1029,7 @@ */ static int -unique_book (object *book, int msgtype) +unique_book (const object *book, int msgtype) { title *test; @@ -1049,7 +1049,7 @@ /* add_book_to_list() */ static void -add_book_to_list (object *book, int msgtype) +add_book_to_list (const object *book, int msgtype) { titlelist *tl = get_titlelist (msgtype); title *t; @@ -1311,7 +1311,7 @@ */ char * -mon_desc (object *mon) +mon_desc (const object *mon) { static char retbuf[HUGE_BUF];