From 3e27a6f47be5af6fd7dcf643b0d5b5183eb97a0b Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 3 Jul 2026 19:00:39 +0200 Subject: [PATCH] add warning if theres no music lump for musicdef MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if theyre left over or typo´d (which prevents them from showing up) --- src/s_sound.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/s_sound.c b/src/s_sound.c index 6a4743892..9d157d130 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -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.