- only check „allowduplicates“ for the final file system init

The other calls to InitMultipleFiles should not use it.

Also fix the check to not skip some entries.
This commit is contained in:
Christoph Oelckers 2022-04-29 01:36:06 +02:00
commit 2bc787b1cc
3 changed files with 9 additions and 5 deletions

View file

@ -3205,7 +3205,8 @@ static int D_DoomMain_Internal (void)
FindStrifeTeaserVoices(fileSystem);
};
fileSystem.InitMultipleFiles (allwads, false, &lfi);
bool allowduplicates = Args->CheckParm("-allowduplicates");
fileSystem.InitMultipleFiles (allwads, false, &lfi, allowduplicates);
allwads.Clear();
allwads.ShrinkToFit();
SetMapxxFlag();