diff --git a/1.1/Assemblies/OpenTheWindows.dll b/1.1/Assemblies/OpenTheWindows.dll index 9d2bc27..7d1b7fa 100644 Binary files a/1.1/Assemblies/OpenTheWindows.dll and b/1.1/Assemblies/OpenTheWindows.dll differ diff --git a/Source/OpenTheWindows.csproj b/Source/OpenTheWindows.csproj index f016ed6..a908617 100644 --- a/Source/OpenTheWindows.csproj +++ b/Source/OpenTheWindows.csproj @@ -48,7 +48,7 @@ ..\1.1\Assemblies\ TRACE none - 4 + 0 false diff --git a/Source/PlaceWorker_Window.cs b/Source/PlaceWorker_Window.cs index 1c258d4..88e5737 100644 --- a/Source/PlaceWorker_Window.cs +++ b/Source/PlaceWorker_Window.cs @@ -1,4 +1,6 @@ -using System.Linq; +using RimWorld; +using System.Collections.Generic; +using System.Linq; using UnityEngine; using Verse; @@ -8,18 +10,20 @@ public class PlaceWorker_Window : PlaceWorker { public override void DrawGhost(ThingDef def, IntVec3 center, Rot4 rot, Color ghostCol, Thing thing = null) { - if (thing == null) + List field; + if (thing == null || thing is Blueprint) { Map currentMap = Find.CurrentMap; IntVec3 start = WindowUtility.FindEnd(center, rot, def.size, false); IntVec3 end = WindowUtility.FindEnd(center, rot, def.size, true); - GenDraw.DrawFieldEdges(WindowUtility.GetWindowObfuscation(def.size, center, rot, currentMap, start, end).ToList()); + field = WindowUtility.GetWindowObfuscation(def.size, center, rot, currentMap, start, end).ToList(); } else { var window = thing as Building_Window; - GenDraw.DrawFieldEdges(window.EffectArea); + field = window.EffectArea; } + GenDraw.DrawFieldEdges(field); } } } \ No newline at end of file diff --git a/Source/Properties/AssemblyInfo.cs b/Source/Properties/AssemblyInfo.cs index e09208b..6450e61 100644 --- a/Source/Properties/AssemblyInfo.cs +++ b/Source/Properties/AssemblyInfo.cs @@ -32,4 +32,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("2.0")] -[assembly: AssemblyFileVersion("2.2.2")] \ No newline at end of file +[assembly: AssemblyFileVersion("2.3")] \ No newline at end of file