Skip to content
Permalink
Browse files

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

  • Loading branch information...
coelckers committed Nov 3, 2019
1 parent e55a935 commit 077d4e08bbdede34ad238d6a3af89cacc83fbd93
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/gamedata/resourcefiles/resourcefile.cpp
@@ -413,8 +413,11 @@ void FResourceFile::PostProcessArchive(void *lumps, size_t lumpsize)
long len;
int lastpos = -1;
FString file;

while ((len = LumpFilterIWAD.IndexOf('.', lastpos+1)) > 0)
if (LumpFilter.IndexOf('.') < 0)
{
max -= FilterLumps(LumpFilter, lumps, lumpsize, max);
}
else while ((len = LumpFilterIWAD.IndexOf('.', lastpos+1)) > 0)
{
max -= FilterLumps(LumpFilterIWAD.Left(len), lumps, lumpsize, max);
lastpos = len;

0 comments on commit 077d4e0

Please sign in to comment.
You can’t perform that action at this time.