mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 09:20:51 +00:00
- 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:
parent
e0ee3a6701
commit
1439897b65
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue