From 4350b72260b6e80f514142c9bfb845494605dd27 Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Wed, 24 Sep 2025 18:02:43 +0200 Subject: [PATCH] fix V_Init2() being called twice on startup --- src/d_main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index e165bb93e..60f26ba66 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3331,7 +3331,7 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector& allw allwads.shrink_to_fit(); SetMapxxFlag(); - if (!restart) + if (!(restart || norun)) { // Note: this has to happen after the file system has been initialized (backends may load shaders during initialization) V_Init2(); @@ -3372,9 +3372,6 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector& allw exec = NULL; } - if (!(restart || norun)) - V_Init2(); - // [RH] Initialize localizable strings. GStrings.LoadStrings(fileSystem, language);