A slightly better implementation of previous commit...

This commit is contained in:
MaxED 2014-11-03 14:03:47 +00:00
parent 720b4e01ec
commit 27d021887e
2 changed files with 5 additions and 5 deletions

View file

@ -1194,11 +1194,6 @@ namespace CodeImp.DoomBuilder
// Open map options dialog
ChangeMapForm changemapwindow = new ChangeMapForm(map.FilePathName, map.Options);
if(changemapwindow.ShowDialog(mainwindow) != DialogResult.OK) return;
if (map.Options.CurrentName == changemapwindow.Options.CurrentName)
{
mainwindow.DisplayStatus(StatusType.Info, "Map '" + map.Options.CurrentName + "' is already loaded!");
return;
}
// Display status
mainwindow.DisplayStatus(StatusType.Busy, "Switching to map '" + changemapwindow.Options.CurrentName + "'...");