diff --git a/.gitignore b/.gitignore index 73b3cac..8ef6bf2 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ Source/Plugins/ImageDrawingExample/obj Build/*.exe Build/*.pdb Build/Plugins +Build/Builder.xml diff --git a/Source/Core/Rendering/Renderer3D.cs b/Source/Core/Rendering/Renderer3D.cs index 344f49e..ad4e29d 100644 --- a/Source/Core/Rendering/Renderer3D.cs +++ b/Source/Core/Rendering/Renderer3D.cs @@ -1024,7 +1024,7 @@ public void SetFogMode(bool usefog) graphics.Device.SetRenderState(RenderState.FogEnable, usefog); } - // This siwtches crosshair busy icon on and off + // This switches crosshair busy icon on and off public void SetCrosshairBusy(bool busy) { crosshairbusy = busy; diff --git a/Source/Core/Windows/MainForm.cs b/Source/Core/Windows/MainForm.cs index 3486ace..44f2a22 100644 --- a/Source/Core/Windows/MainForm.cs +++ b/Source/Core/Windows/MainForm.cs @@ -908,10 +908,6 @@ public void RedrawDisplay() { if ((General.Map != null) && (General.Editing.Mode != null)) { - foreach (Sector s in General.Map.Map.Sectors) - s.UpdateNeeded = true; - - General.Map.Map.Update(); General.Editing.Mode.OnRedrawDisplay(); } else @@ -2004,6 +2000,11 @@ public void ToggleFullBrightness() General.Interface.DisplayStatus(StatusType.Action, "Full Brightness is now " + (Renderer.FullBrightness ? "ON" : "OFF")); // Redraw display to show changes + foreach (Sector s in General.Map.Map.Sectors) + { + s.UpdateNeeded = true; + } + General.Map.Map.Update(); General.Interface.RedrawDisplay(); }