mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-21 03:01:36 +00:00
- print an error when a sound file cannot be found.
This commit is contained in:
parent
33f0d229fa
commit
dbef2f74d1
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,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->ScriptMessage("%s: sound file not found");
|
||||
return S_AddSound(logicalname, lump, sc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue