mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-22 17:01:08 +00:00
- don't print file-not-found errors for internal SNDINFO definitions.
This commit is contained in:
parent
1cb86af5f9
commit
1468bedf4c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue