From b6150197154be0ec90440ce89d38276183744c3d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 1 Jun 2022 17:44:07 +0200 Subject: [PATCH] - fixed: sound must be initialized before the start screen. --- src/d_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 56132ccb70..9dc271e900 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -3070,6 +3070,9 @@ static int D_InitGame(const FIWADInfo* iwad_info, TArray& allwads, TArr D_GrabCVarDefaults(); //parse DEFCVARS InitPalette(); + if (!batchrun) Printf("S_Init: Setting up sound.\n"); + S_Init(); + int max_progress = TexMan.GuesstimateNumTextures(); int per_shader_progress = 0;//screen->GetShaderCount()? (max_progress / 10 / screen->GetShaderCount()) : 0; bool nostartscreen = batchrun || restart || Args->CheckParm("-join") || Args->CheckParm("-host") || Args->CheckParm("-norun"); @@ -3139,9 +3142,6 @@ static int D_InitGame(const FIWADInfo* iwad_info, TArray& allwads, TArr compatmode = (int)strtoll(compatmodeval, nullptr, 10); } - if (!batchrun) Printf ("S_Init: Setting up sound.\n"); - S_Init (); - if (!batchrun) Printf ("ST_Init: Init startup screen.\n"); if (!restart) {