ref: 2ecb680cc7917359c4bcf5bc00b51a5e2fcfad4a
parent: 891e6c4e9a479b2182d07f17577f39f2a6b61b28
author: Turo Lamminen <turotl@gmail.com>
date: Sat Jul 21 13:07:59 EDT 2018
doom: Make end messages const
--- a/src/doom/dstrings.c
+++ b/src/doom/dstrings.c
@@ -20,7 +20,7 @@
#include "dstrings.h"
-char *doom1_endmsg[] =
+const char *doom1_endmsg[] =
{
"are you sure you want to\nquit this great game?",
"please don't leave, there's more\ndemons to toast!",
@@ -32,7 +32,7 @@
"go ahead and leave. see if i care.",
};
-char *doom2_endmsg[] =
+const char *doom2_endmsg[] =
{
// QuitDOOM II messages
"are you sure you want to\nquit this great game?",
--- a/src/doom/dstrings.h
+++ b/src/doom/dstrings.h
@@ -34,8 +34,8 @@
// 8 per each game type
#define NUM_QUITMESSAGES 8
-extern char *doom1_endmsg[];
-extern char *doom2_endmsg[];
+extern const char *doom1_endmsg[];
+extern const char *doom2_endmsg[];
#endif
--- a/src/doom/m_menu.c
+++ b/src/doom/m_menu.c
@@ -1091,7 +1091,7 @@
static const char *M_SelectEndMessage(void)
{
- char **endmsg;
+ const char **endmsg;
if (logical_gamemission == doom)
{