From fb14f39d88b408867ff5d0a22b87f7ce33923159 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 3 Nov 2019 15:53:41 +0100 Subject: [PATCH] - fixed: lump filters without any dot in the name did not work. --- src/resourcefiles/resourcefile.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/resourcefiles/resourcefile.cpp b/src/resourcefiles/resourcefile.cpp index d3949f5ed..b4d987810 100644 --- a/src/resourcefiles/resourcefile.cpp +++ b/src/resourcefiles/resourcefile.cpp @@ -407,8 +407,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;