From 5b4aa573b1244abb6ff94cb9edbe6fb4eca81b14 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 26 Dec 2023 18:40:08 +0100 Subject: [PATCH] fixed: The generic sound loader for SNDINFO must use S_LookupSound to match the feature set of the game specific code. SW uses this and also needs to be able to handle the extended lookup. --- source/core/music/s_advsound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/music/s_advsound.cpp b/source/core/music/s_advsound.cpp index d2c0ba99a..3ee731f02 100644 --- a/source/core/music/s_advsound.cpp +++ b/source/core/music/s_advsound.cpp @@ -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);