From 0efd5a7800d0bfd4ba48c04fb05db12553334f05 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sat, 28 Jul 2018 15:15:40 +0300 Subject: [PATCH] doom: Make gamedescription variable const --- src/doom/doomstat.c | 2 +- src/doom/doomstat.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doom/doomstat.c b/src/doom/doomstat.c index 0b880ecc..e330197a 100644 --- a/src/doom/doomstat.c +++ b/src/doom/doomstat.c @@ -26,7 +26,7 @@ GameMode_t gamemode = indetermined; 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; diff --git a/src/doom/doomstat.h b/src/doom/doomstat.h index 8340851f..61c127d4 100644 --- a/src/doom/doomstat.h +++ b/src/doom/doomstat.h @@ -57,7 +57,7 @@ extern GameMode_t gamemode; 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 @@ extern wbstartstruct_t wminfo; // // File handling stuff. -extern char * savegamedir; +extern char *savegamedir; extern char basedefault[1024]; // if true, load all graphics at level load