Skip to content

Commit

Permalink
Fix resetting episode, expansion CVARs at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 10, 2024
1 parent 3c5e6cd commit 4b089fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2849,8 +2849,10 @@ static void D_DoomMainSetup(void)
#if defined(_WIN32)
if (wad && previouswad && !M_StringCompare(wad, previouswad))
{
EpiDef.laston = episode = episode_default;
ExpDef.laston = expansion = expansion_default;
episode = episode_default;
EpiDef.laston = episode - 1;
expansion = expansion_default;
ExpDef.laston = expansion - 1;
M_SaveCVARs();
}
#endif
Expand Down

0 comments on commit 4b089fe

Please sign in to comment.