From 0344462684c8234223fbce5fd366f9ad5b4a1f20 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 9 Jun 2022 04:11:44 -0400 Subject: [PATCH] - set `i_pauseinbackground` to match `!(i_soundinbackground)` for all configs before this commit. --- src/gameconfigfile.cpp | 7 +++++++ src/version.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gameconfigfile.cpp b/src/gameconfigfile.cpp index 17898f3ae30..d8e19f7e172 100644 --- a/src/gameconfigfile.cpp +++ b/src/gameconfigfile.cpp @@ -73,6 +73,8 @@ EXTERN_CVAR(Float, m_sensitivity_y) EXTERN_CVAR(Int, adl_volume_model) EXTERN_CVAR (Int, gl_texture_hqresize_targets) EXTERN_CVAR(Int, wipetype) +EXTERN_CVAR(Bool, i_pauseinbackground) +EXTERN_CVAR(Bool, i_soundinbackground) #ifdef _WIN32 EXTERN_CVAR(Int, in_mouse) @@ -591,6 +593,11 @@ void FGameConfigFile::DoGlobalSetup () if (v.Float < 1.f) v.Float = 1.f; } } + if (last < 223) + { + // ooooh boy did i open a can of worms with this one. + i_pauseinbackground = !(i_soundinbackground); + } } } } diff --git a/src/version.h b/src/version.h index 0f401b411a9..fd4264384a0 100644 --- a/src/version.h +++ b/src/version.h @@ -65,7 +65,7 @@ const char *GetVersionString(); // Version stored in the ini's [LastRun] section. // Bump it if you made some configuration change that you want to // be able to migrate in FGameConfigFile::DoGlobalSetup(). -#define LASTRUNVERSION "222" +#define LASTRUNVERSION "223" // Protocol version used in demos. // Bump it if you change existing DEM_ commands or add new ones.