shithub: choc

Download patch

ref: a20daa0f3123e1eb392eac264d174503aff127b9
parent: ea6050d61b7b67f49d6eb6f995c9a650a1071382
author: Turo Lamminen <[email protected]>
date: Sat May 5 10:53:03 EDT 2018

heretic: Make G_DeferedPlayDemo parameter const

--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -651,7 +651,7 @@
 // can be called by the startup code or M_Responder
 // a normal game starts at map 1, but a warp test can start elsewhere
 
-void G_DeferedPlayDemo(char *demo);
+void G_DeferedPlayDemo(const char *demo);
 
 void G_LoadGame(char *name);
 // can be called by the startup code or M_Responder
--- a/src/heretic/g_game.c
+++ b/src/heretic/g_game.c
@@ -1871,7 +1871,7 @@
 
 static const char *defdemoname;
 
-void G_DeferedPlayDemo(char *name)
+void G_DeferedPlayDemo(const char *name)
 {
     defdemoname = name;
     gameaction = ga_playdemo;