fix V_Init2() being called twice on startup

This commit is contained in:
Mari the Deer 2025-09-24 18:02:43 +02:00
commit 4350b72260

View file

@ -3331,7 +3331,7 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& 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<std::string>& allw
exec = NULL;
}
if (!(restart || norun))
V_Init2();
// [RH] Initialize localizable strings.
GStrings.LoadStrings(fileSystem, language);