Skip to content

Commit

Permalink
- fix #2415 - wait to call V_Init2() until after exec commands are pr…
Browse files Browse the repository at this point in the history
…ocessed
  • Loading branch information
madame-rachelle committed Feb 26, 2024
1 parent 49cac88 commit 47be9c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/d_main.cpp
Expand Up @@ -3107,7 +3107,6 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
V_InitScreenSize();
// This allocates a dummy framebuffer as a stand-in until V_Init2 is called.
V_InitScreen();
V_Init2();
}
SavegameFolder = iwad_info->Autoname;
gameinfo.gametype = iwad_info->gametype;
Expand Down Expand Up @@ -3244,6 +3243,9 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
exec = NULL;
}

if (!restart)
V_Init2();

// [RH] Initialize localizable strings.
GStrings.LoadStrings(fileSystem, language);

Expand Down

0 comments on commit 47be9c1

Please sign in to comment.