Fixed: .dbs map configuration was not loaded when loading a map by dragging a wad file on top of GZDB shortcut/executable.

This commit is contained in:
MaxED 2014-03-20 13:04:28 +00:00
parent 9220d5df3b
commit 82b868e5f5
2 changed files with 5 additions and 11 deletions

View file

@ -449,11 +449,12 @@ namespace CodeImp.DoomBuilder.Windows
{
bool showdialog = false;
MapOptions options = new MapOptions();
Configuration mapsettings;
// Any of the options already given?
if(General.AutoLoadMap != null)
{
Configuration mapsettings;
// Try to find existing options in the settings file
string dbsfile = General.AutoLoadFile.Substring(0, General.AutoLoadFile.Length - 4) + ".dbs";
if(File.Exists(dbsfile))
@ -486,7 +487,7 @@ namespace CodeImp.DoomBuilder.Windows
if(showdialog)
{
// Show open dialog
General.OpenMapFile(General.AutoLoadFile, options);
General.OpenMapFile(General.AutoLoadFile, null);
}
else
{