foxygit / doom Log in
commit 12c1d8bf5812d050146dadaf59347a0d49c441cf
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Dec 8 15:42:13 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Dec 8 16:15:54 2018 +0200

    heretic: Make LevelNames contents const
---
 src/heretic/am_map.c  | 2 +-
 src/heretic/in_lude.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/heretic/am_map.c b/src/heretic/am_map.c
index 9d2c51bb..be2b0dbb 100644
--- a/src/heretic/am_map.c
+++ b/src/heretic/am_map.c
@@ -34,7 +34,7 @@ vertex_t KeyPoints[NUMKEYS];

 #define NUMALIAS 3              // Number of antialiased lines.

-char *LevelNames[] = {
+const char *LevelNames[] = {
     // EPISODE 1 - THE CITY OF THE DAMNED
     "E1M1:  THE DOCKS",
     "E1M2:  THE DUNGEONS",
diff --git a/src/heretic/in_lude.c b/src/heretic/in_lude.c
index f2f315e9..a54a3797 100644
--- a/src/heretic/in_lude.c
+++ b/src/heretic/in_lude.c
@@ -97,7 +97,7 @@ static fixed_t dSlideY[MAXPLAYERS];

 static char *KillersText[] = { "K", "I", "L", "L", "E", "R", "S" };

-extern char *LevelNames[];
+extern const char *LevelNames[];

 typedef struct
 {