- fixed sound issues with DSDHacked.
* forward declarations must be allowed. * this must disable map-local SNDINFOs because the added sounds would get lost otherwise.
This commit is contained in:
parent
f72da434a8
commit
2fe0a7c60d
4 changed files with 22 additions and 2 deletions
|
|
@ -3358,6 +3358,8 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
|
|||
if (!batchrun) Printf ("DecalLibrary: Load decals.\n");
|
||||
DecalLibrary.ReadAllDecals ();
|
||||
|
||||
auto numbasesounds = soundEngine->GetNumSounds();
|
||||
|
||||
// Load embedded Dehacked patches
|
||||
D_LoadDehLumps(FromIWAD);
|
||||
|
||||
|
|
@ -3387,6 +3389,9 @@ static int D_InitGame(const FIWADInfo* iwad_info, std::vector<std::string>& allw
|
|||
// Create replacements for dehacked pickups
|
||||
FinishDehPatch();
|
||||
|
||||
auto numdehsounds = soundEngine->GetNumSounds();
|
||||
if (numbasesounds < numdehsounds) S_LockLocalSndinfo(); // DSDHacked sounds are not compatible with map-local SNDINFOs.
|
||||
|
||||
if (!batchrun) Printf("M_Init: Init menus.\n");
|
||||
SetDefaultMenuColors();
|
||||
M_Init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue