shithub: choc

Download patch

ref: 0efd5a7800d0bfd4ba48c04fb05db12553334f05
parent: 848175794655304bfbd32b221a8688915f2458b5
author: Turo Lamminen <turotl@gmail.com>
date: Sat Jul 28 11:15:40 EDT 2018

doom: Make gamedescription variable const

--- a/src/doom/doomstat.c
+++ b/src/doom/doomstat.c
@@ -26,7 +26,7 @@
 GameMission_t	gamemission = doom;
 GameVersion_t   gameversion = exe_final2;
 GameVariant_t   gamevariant = vanilla;
-char *gamedescription;
+const char *gamedescription;
 
 // Set if homebrew PWAD stuff has been added.
 boolean	modifiedgame;
--- a/src/doom/doomstat.h
+++ b/src/doom/doomstat.h
@@ -57,7 +57,7 @@
 extern GameMission_t	gamemission;
 extern GameVersion_t    gameversion;
 extern GameVariant_t    gamevariant;
-extern char            *gamedescription;
+extern const char       *gamedescription;
 
 // Convenience macro.
 // 'gamemission' can be equal to pack_chex or pack_hacx, but these are
@@ -244,7 +244,7 @@
 //
 
 // File handling stuff.
-extern  char *          savegamedir;
+extern  char        *savegamedir;
 extern	char		basedefault[1024];
 
 // if true, load all graphics at level load