Skip to content

Commit

Permalink
- set i_pauseinbackground to match !(i_soundinbackground) for all…
Browse files Browse the repository at this point in the history
… configs before this commit.
  • Loading branch information
madame-rachelle committed Jun 9, 2022
1 parent 013f200 commit 0344462
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/gameconfigfile.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Expand Up @@ -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.
Expand Down

0 comments on commit 0344462

Please sign in to comment.