- fixed: lump filters without any dot in the name did not work.

This commit is contained in:
Christoph Oelckers 2019-11-03 15:53:41 +01:00
parent e55a935220
commit 077d4e08bb

View file

@ -413,8 +413,11 @@ void FResourceFile::PostProcessArchive(void *lumps, size_t lumpsize)
long len; long len;
int lastpos = -1; int lastpos = -1;
FString file; FString file;
if (LumpFilter.IndexOf('.') < 0)
while ((len = LumpFilterIWAD.IndexOf('.', lastpos+1)) > 0) {
max -= FilterLumps(LumpFilter, lumps, lumpsize, max);
}
else while ((len = LumpFilterIWAD.IndexOf('.', lastpos+1)) > 0)
{ {
max -= FilterLumps(LumpFilterIWAD.Left(len), lumps, lumpsize, max); max -= FilterLumps(LumpFilterIWAD.Left(len), lumps, lumpsize, max);
lastpos = len; lastpos = len;