From 1439897b65f9083f9d76954842561d7770555aeb Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 8 Apr 2021 15:55:37 +0200 Subject: [PATCH] - fixed extended music lookup. The logic was inverted for extended lookup which always resulted in failure to find the song. --- source/core/raze_music.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/raze_music.cpp b/source/core/raze_music.cpp index 9ee2d1c72..69cc5dbba 100644 --- a/source/core/raze_music.cpp +++ b/source/core/raze_music.cpp @@ -132,7 +132,7 @@ FileReader OpenMusic(const char* musicname) if (!reader.isOpen()) { int lumpnum = LookupMusic(musicname); - if (mus_extendedlookup && lumpnum >= 0) + if (mus_extendedlookup && lumpnum < 0) { // EDuke also looks in a subfolder named after the main game resource. Do this as well if extended lookup is active. auto rfn = fileSystem.GetResourceFileName(fileSystem.GetFileContainer(lumpnum));