- don't print file-not-found errors for internal SNDINFO definitions.

This commit is contained in:
Christoph Oelckers 2023-05-27 07:15:43 +02:00
parent 1cb86af5f9
commit 1468bedf4c

View file

@ -159,7 +159,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, ns_sounds);
if (lump == -1 && sc)
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);
}