foxygit / doom Log in
commit f7ebac1b3c3a66f8f3ba4ab8f8b6517bcde5260d
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Apr 3 19:09:35 2018 +0300
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Apr 3 19:09:35 2018 +0300

    doom: Make G_DeferedPlayDemo parameter const
---
 src/doom/g_game.c | 2 +-
 src/doom/g_game.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/doom/g_game.c b/src/doom/g_game.c
index 91d05d7a..70d3e683 100644
--- a/src/doom/g_game.c
+++ b/src/doom/g_game.c
@@ -2115,7 +2115,7 @@ void G_BeginRecording (void)

 static const char *defdemoname;

-void G_DeferedPlayDemo (char* name)
+void G_DeferedPlayDemo(const char *name)
 {
     defdemoname = name;
     gameaction = ga_playdemo;
diff --git a/src/doom/g_game.h b/src/doom/g_game.h
index da0df39b..519ef0bf 100644
--- a/src/doom/g_game.h
+++ b/src/doom/g_game.h
@@ -37,7 +37,7 @@ void G_InitNew (skill_t skill, int episode, int map);
 // but a warp test can start elsewhere
 void G_DeferedInitNew (skill_t skill, int episode, int map);

-void G_DeferedPlayDemo (char* demo);
+void G_DeferedPlayDemo (const char* demo);

 // Can be called by the startup code or M_Responder,
 // calls P_SetupLevel or W_EnterWorld.