foxygit / doom Log in
commit b2fb9324a939de61e495e43086e3a152dac042bf
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Sat May 2 15:23:22 2020 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Sat May 2 15:23:22 2020 +0300

    heretic: Make G_RecordDemo name parameter const
---
 src/heretic/doomdef.h | 2 +-
 src/heretic/g_game.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 82258211..76089ad3 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -680,7 +680,7 @@ uint32_t SV_ReadLong(void);
 extern char *savegamedir;

 void G_RecordDemo(skill_t skill, int numplayers, int episode, int map,
-                  char *name);
+                  const char *name);
 // only called by startup code

 void G_PlayDemo(char *name);
diff --git a/src/heretic/g_game.c b/src/heretic/g_game.c
index 339986cf..7e069693 100644
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -1857,7 +1857,7 @@ void G_WriteDemoTiccmd(ticcmd_t * cmd)
 */

 void G_RecordDemo(skill_t skill, int numplayers, int episode, int map,
-                  char *name)
+                  const char *name)
 {
     int i;
     int maxsize;