Skip to content

Commit

Permalink
fixed: The generic sound loader for SNDINFO must use S_LookupSound to…
Browse files Browse the repository at this point in the history
… match the feature set of the game specific code.

SW uses this and also needs to be able to handle the extended lookup.
  • Loading branch information
coelckers committed Dec 26, 2023
1 parent 485ad27 commit 5b4aa57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/music/s_advsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static FSoundID S_AddSound(const char* logicalname, int lumpnum, FScanner* sc)

FSoundID S_AddSound(const char* logicalname, const char* lumpname, FScanner* sc)
{
int lump = fileSystem.CheckNumForFullName(lumpname, true, FileSys::ns_sounds);
int lump = S_LookupSound(lumpname);
if (lump == -1 && sc && fileSystem.GetFileContainer(sc->LumpNum) > fileSystem.GetMaxIwadNum())
sc->ScriptMessage("%s: sound file not found", sc->String);
return S_AddSound(logicalname, lump, sc);
Expand Down

0 comments on commit 5b4aa57

Please sign in to comment.