add warning if theres no music lump for musicdef

if theyre left over or typo´d (which prevents them from showing up)
This commit is contained in:
alufolie91 committed 2026-07-03 19:01:02 +02:00
1 parent dabedcfba2
commit 3e27a6f47b
1 file changed
+7
+7
View File
@@ -1277,6 +1277,13 @@ static boolean ReadMusicDefFields(UINT16 wadnum, int line, char *stoken, musicde
}
else
{
if (!S_MusicExists(value, false, true)) // && !S_MusicExists(value, true, false) idk if we wanna check for midi?
{
CONS_Alert(CONS_WARNING, "MUSICDEF: No music found for lump %s. (file %s, line %d)\n", value, wadfiles[wadnum]->filename, line);
//(void)strtok(NULL, " "); if we skip this the rest of the musicdef will also be skipped, even if we return true here :chaosleep:
//return true;
}
def = S_FindMusicCredit(value);
// Nothing found, add to the end.