- Fix wrong thiswad check for materials too.

This commit is contained in:
drfrag 2021-07-18 11:30:52 +02:00 committed by alexey.lysiuk
parent d00c6e4ecc
commit 2d0a876ab1

View file

@ -1337,7 +1337,7 @@ class GLDefsParser
if (lumpnum != -1)
{
if (iwad && fileSystem.GetFileContainer(lumpnum) <= fileSystem.GetMaxIwadNum()) useme = true;
if (thiswad && fileSystem.GetFileContainer(lumpnum) == workingLump) useme = true;
if (thiswad && fileSystem.GetFileContainer(lumpnum) == fileSystem.GetFileContainer(workingLump)) useme = true;
}
if (!useme) return;
}