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

@ -142,6 +142,11 @@ namespace CodeImp.DoomBuilder.Windows
General.ShowWarningMessage("Please select a map first!", MessageBoxButtons.OK);
return;
}
if (mapslist.SelectedItems[0].Text == options.LevelName)
{
General.ShowWarningMessage("Map '" + options.LevelName + "' is already loaded!", MessageBoxButtons.OK);
return;
}
options.CurrentName = mapslist.SelectedItems[0].Text;
options.PreviousName = string.Empty;