From 47be9c1e54175418d425095daf29b2b24e2fe27b Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Mon, 26 Feb 2024 13:55:54 -0500 Subject: [PATCH] - fix https://github.com/ZDoom/gzdoom/issues/2415 - wait to call V_Init2() until after exec commands are processed --- src/d_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index b0e682636..30bbb5227 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3107,7 +3107,6 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector& 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; @@ -3244,6 +3243,9 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector& allw exec = NULL; } + if (!restart) + V_Init2(); + // [RH] Initialize localizable strings. GStrings.LoadStrings(fileSystem, language);