diff --git a/source/common/filesystem/filesystem.cpp b/source/common/filesystem/filesystem.cpp index 6e3bea388..61c947c7a 100644 --- a/source/common/filesystem/filesystem.cpp +++ b/source/common/filesystem/filesystem.cpp @@ -216,6 +216,19 @@ void FileSystem::InitMultipleFiles (TArray &filenames, bool quiet, Lump DeleteAll(); numfiles = 0; + // first, check for duplicates + if (!Args->CheckParm("-allowduplicates")) + { + for (unsigned i=0;i