diff --git a/1.4/Assemblies/CameraPlus.dll b/1.4/Assemblies/CameraPlus.dll
index 956ba51..4b16629 100644
Binary files a/1.4/Assemblies/CameraPlus.dll and b/1.4/Assemblies/CameraPlus.dll differ
diff --git a/About/About.xml b/About/About.xml
index 908c1f0..f4ee70e 100755
--- a/About/About.xml
+++ b/About/About.xml
@@ -18,7 +18,7 @@
brrainz.cameraplus
- 2.6.1.0
+ 2.6.2.0
867467808
https://github.com/pardeike/CameraPlus
You want more zoom and different paning?
diff --git a/About/Manifest.xml b/About/Manifest.xml
index 090e2b5..0499b4e 100644
--- a/About/Manifest.xml
+++ b/About/Manifest.xml
@@ -1,7 +1,7 @@
net.pardeike.rimworld.mod.cameraplus
- 2.6.1.0
+ 2.6.2.0
1.0.0
1.1.0
diff --git a/Directory.Build.props b/Directory.Build.props
index 4d6b2f0..ddfdd2b 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -4,7 +4,7 @@
Camera+
CameraPlus
https://github.com/pardeike/CameraPlus
- 2.6.1.0
+ 2.6.2.0
{AC5EE7A1-16EA-498D-B21A-83ACF78F0E5A}
diff --git a/Source/CameraPlus.csproj b/Source/CameraPlus.csproj
index 39eadc7..765275b 100644
--- a/Source/CameraPlus.csproj
+++ b/Source/CameraPlus.csproj
@@ -45,7 +45,7 @@
-
+
diff --git a/Source/Main.cs b/Source/Main.cs
index 11aba15..cb2b283 100644
--- a/Source/Main.cs
+++ b/Source/Main.cs
@@ -505,6 +505,9 @@ static class KeyBindingDef_KeyDownEvent_Patch
public static void CleanupAtEndOfFrame()
{
+ if (Current.ProgramState != ProgramState.Playing)
+ return;
+
if (Event.current.type == EventType.KeyUp && KeyBindingDefOf.TogglePause.IsDown == false)
wasDown = false;
diff --git a/Source/Tools.cs b/Source/Tools.cs
index 330ac53..c4a58e0 100644
--- a/Source/Tools.cs
+++ b/Source/Tools.cs
@@ -145,6 +145,7 @@ public static void DrawDot(Pawn pawn, Color innerColor, Color outerColor)
else
color = new Color(color32s[0].r / 255f, color32s[0].g / 255f, color32s[0].b / 255f);
+ UnityEngine.Object.Destroy(outputTexture);
cachedMainColors[key] = color;
}
return color;
@@ -405,7 +406,7 @@ IEnumerator ApplyRootPosAndSize()
public static void HandleHotkeys()
{
- if (Event.current.type == EventType.Repaint)
+ if (Event.current.type == EventType.Repaint || Current.ProgramState != ProgramState.Playing)
return;
var settings = CameraPlusMain.Settings;