Revert "Fixed: 'Save into' would detect non-map lumps with the same name as maps and ask if you want to save over..."

This reverts commit 7cb80cf9f2.
This commit is contained in:
spherallic 2023-05-30 16:48:53 +02:00
parent aa0bd8de91
commit f5f13dfc3d

View file

@ -913,7 +913,7 @@ namespace CodeImp.DoomBuilder
if(purpose == SavePurpose.IntoFile)
{
WAD wad = new WAD(newfilepathname, true);
int mapindex = FindAndRemoveMap(wad, origmapname, false);
int mapindex = wad.FindLumpIndex(origmapname);
wad.Dispose();
if(mapindex != -1 && MessageBox.Show(General.MainWindow, "Target file already contains map '" + origmapname + "'\nDo you want to replace it?", "Map already exists!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.No)