- fixed extended music lookup.

The logic was inverted for extended lookup which always resulted in failure to find the song.
This commit is contained in:
Christoph Oelckers 2021-04-08 15:55:37 +02:00
parent e0ee3a6701
commit 1439897b65

View file

@ -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));