Merge pull request #155 from mrpimpunicorn/master

Minor fixes
This commit is contained in:
Drew DeVault 2015-06-21 16:37:06 -04:00
commit 4a0b4c4865
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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;