shithub: choc

Download patch

ref: 71c2c2bc76df66923c3fbfd758a5b2493bd9b18e
parent: 1b1c416763777f18fd454dfc4ebce45d78a567c6
author: Turo Lamminen <turol@iki.fi>
date: Tue Feb 4 08:29:08 EST 2020

doom: Move gamedescription global variable from doomstat.c to d_main.c

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -87,6 +87,8 @@
 //
 void D_DoomLoop (void);
 
+static const char *gamedescription;
+
 // Location where savegames are stored
 
 char *          savegamedir;
--- a/src/doom/doomstat.c
+++ b/src/doom/doomstat.c
@@ -26,7 +26,6 @@
 GameMission_t	gamemission = doom;
 GameVersion_t   gameversion = exe_final2;
 GameVariant_t   gamevariant = vanilla;
-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,6 @@
 extern GameMission_t	gamemission;
 extern GameVersion_t    gameversion;
 extern GameVariant_t    gamevariant;
-extern const char       *gamedescription;
 
 // Convenience macro.
 // 'gamemission' can be equal to pack_chex or pack_hacx, but these are