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

This commit is contained in:
ZZYZX 2017-02-14 17:48:31 +02:00
parent d46860824d
commit 4a62478545
3 changed files with 4 additions and 4 deletions

View file

@ -908,7 +908,7 @@ namespace CodeImp.DoomBuilder
if(purpose == SavePurpose.IntoFile)
{
WAD wad = new WAD(newfilepathname, true);
int mapindex = wad.FindLumpIndex(origmapname);
int mapindex = FindAndRemoveMap(wad, origmapname, false);
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)

View file

@ -30,6 +30,6 @@ using CodeImp.DoomBuilder;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.3.0.2895")]
[assembly: AssemblyVersion("2.3.0.2897")]
[assembly: NeutralResourcesLanguageAttribute("en")]
[assembly: AssemblyHash("f895950")]
[assembly: AssemblyHash("d468608")]

View file

@ -29,5 +29,5 @@ using System.Resources;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.3.0.2895")]
[assembly: AssemblyVersion("2.3.0.2897")]
[assembly: NeutralResourcesLanguageAttribute("en")]