From 164a9640b93c1bc6e6f7b56e3e5c7e9fd25a7abf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 11 Dec 2020 19:04:35 +0100 Subject: [PATCH] - added the option to look for music by using a truncated 8-character variant of the given name. This workaround is needed because there's known old mods depending on this legacy behavior. --- src/sound/s_music.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sound/s_music.cpp b/src/sound/s_music.cpp index aa5330c2b..b821cb739 100644 --- a/src/sound/s_music.cpp +++ b/src/sound/s_music.cpp @@ -468,7 +468,9 @@ bool S_ChangeMusic (const char *musicname, int order, bool looping, bool force) FileReader reader; if (!FileExists (musicname)) { - if ((lumpnum = Wads.CheckNumForFullName (musicname, true, ns_music)) == -1) + lumpnum = Wads.CheckNumForFullName (musicname); + if (lumpnum == -1) lumpnum = Wads.CheckNumForName (musicname, ns_music); + if (lumpnum == -1) { Printf ("Music \"%s\" not found\n", musicname); return false;