mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-23 20:01:20 +00:00
- fixed: lump filters without any dot in the name did not work.
This commit is contained in:
parent
c41a44176f
commit
fb14f39d88
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue