foxygit / doom Log in
commit 71c2c2bc76df66923c3fbfd758a5b2493bd9b18e
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Tue Feb 4 13:29:08 2020 +0200
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Fri Mar 20 16:55:29 2020 +0200

    doom: Move gamedescription global variable from doomstat.c to d_main.c
---
 src/doom/d_main.c   | 2 ++
 src/doom/doomstat.c | 1 -
 src/doom/doomstat.h | 1 -
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 1042bf01..30b59b3a 100644
--- 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;
diff --git a/src/doom/doomstat.c b/src/doom/doomstat.c
index e330197a..f8e83f3c 100644
--- a/src/doom/doomstat.c
+++ b/src/doom/doomstat.c
@@ -26,7 +26,6 @@ GameMode_t gamemode = indetermined;
 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;
diff --git a/src/doom/doomstat.h b/src/doom/doomstat.h
index 10a418e0..689f5950 100644
--- a/src/doom/doomstat.h
+++ b/src/doom/doomstat.h
@@ -57,7 +57,6 @@ extern GameMode_t	gamemode;
 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