- fixed: The full dotted lump filter string was never used.

The code added all partial matches to the file system but not the full match.

# Conflicts:
#	src/resourcefiles/resourcefile.cpp
This commit is contained in:
Christoph Oelckers 2020-06-07 11:56:07 +02:00 committed by drfrag
parent 8c877cb36a
commit 100897b406

View file

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