From c8e83ee169cf075d5295a5a13501bb4d276348f3 Mon Sep 17 00:00:00 2001 From: codeimp Date: Tue, 26 Jun 2007 08:47:19 +0000 Subject: [PATCH] new map also needs a temp file --- Build/Builder.cfg | 6 +++--- Source/General/MapManager.cs | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Build/Builder.cfg b/Build/Builder.cfg index 486006fa..77e37139 100644 --- a/Build/Builder.cfg +++ b/Build/Builder.cfg @@ -3,12 +3,12 @@ shortcuts { scrolleast = 39; scrollsouth = 40; - zoomout = 65531; scrollnorth = 38; + openmap = 131151; scrollwest = 37; newmap = 131150; zoomin = 65530; - openmap = 131151; + zoomout = 65531; } @@ -16,8 +16,8 @@ mainwindow { positionx = 124; sizewidth = 739; - windowstate = 2; sizeheight = 572; + windowstate = 2; positiony = 35; } diff --git a/Source/General/MapManager.cs b/Source/General/MapManager.cs index b85805af..ae3306b1 100644 --- a/Source/General/MapManager.cs +++ b/Source/General/MapManager.cs @@ -78,7 +78,7 @@ namespace CodeImp.DoomBuilder #region ================== Constructor / Disposer - // Constructor for new map + // Constructor public MapManager() { // We have no destructor @@ -126,6 +126,9 @@ namespace CodeImp.DoomBuilder config = General.LoadGameConfiguration(options.ConfigFile); data = new MapSet(); + // Create temp wadfile + tempwad = new WAD(General.MakeTempFilename()); + // Initiate graphics if(!graphics.Initialize()) return false;