From 655a0d71e8e0c52825c67089d1889b5657f7761a Mon Sep 17 00:00:00 2001 From: William Moorehouse Date: Sun, 21 Jun 2015 16:26:09 -0400 Subject: [PATCH 1/2] Fixed issue where the client continued to reset the mouse position after losing focus --- TrueCraft.Client/TrueCraftGame.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TrueCraft.Client/TrueCraftGame.cs b/TrueCraft.Client/TrueCraftGame.cs index 8935bd6..d0be9ad 100644 --- a/TrueCraft.Client/TrueCraftGame.cs +++ b/TrueCraft.Client/TrueCraftGame.cs @@ -246,7 +246,7 @@ namespace TrueCraft.Client private void OnMouseComponentMove(object sender, MouseMoveEventArgs e) { - if (MouseCaptured) + if (MouseCaptured && IsActive) { var centerX = GraphicsDevice.Viewport.Width / 2; var centerY = GraphicsDevice.Viewport.Height / 2; From 9f7b923fbf95d8267d6e27aa280b8ec6977eef1e Mon Sep 17 00:00:00 2001 From: William Moorehouse Date: Sun, 21 Jun 2015 16:30:40 -0400 Subject: [PATCH 2/2] Fixed build failure (on Windows?) due to unimplemented virtual property --- TrueCraft.Client/Rendering/FlatQuadRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TrueCraft.Client/Rendering/FlatQuadRenderer.cs b/TrueCraft.Client/Rendering/FlatQuadRenderer.cs index 1fffa19..66d4a36 100644 --- a/TrueCraft.Client/Rendering/FlatQuadRenderer.cs +++ b/TrueCraft.Client/Rendering/FlatQuadRenderer.cs @@ -7,7 +7,7 @@ namespace TrueCraft.Client.Rendering { public abstract class FlatQuadRenderer : BlockRenderer { - protected virtual Vector2 TextureMap { get; } + protected virtual Vector2 TextureMap { get { return Vector2.Zero; } } protected Vector2[] Texture; protected FlatQuadRenderer()