diff --git a/OpenRa.Game/Graphics/Sprite.cs b/OpenRa.Game/Graphics/Sprite.cs index a9f7247f37..3fb1a10971 100644 --- a/OpenRa.Game/Graphics/Sprite.cs +++ b/OpenRa.Game/Graphics/Sprite.cs @@ -19,10 +19,10 @@ namespace OpenRa.Game.Graphics this.channel = channel; uv = new RectangleF( - (float)(bounds.Left + 0.5f) / sheet.Size.Width, - (float)(bounds.Top + 0.5f) / sheet.Size.Height, - (float)(bounds.Width) / sheet.Size.Width, - (float)(bounds.Height) / sheet.Size.Height); + (float)(bounds.Left + .5f) / sheet.Size.Width, + (float)(bounds.Top + .5f) / sheet.Size.Height, + (float)(bounds.Width - .5f) / sheet.Size.Width, + (float)(bounds.Height - .5f) / sheet.Size.Height); uvhax = new float2[] { diff --git a/OpenRa.Game/Shroud.cs b/OpenRa.Game/Shroud.cs index 37b9815370..8f64f7365c 100644 --- a/OpenRa.Game/Shroud.cs +++ b/OpenRa.Game/Shroud.cs @@ -90,9 +90,6 @@ namespace OpenRa.Game Game.CellSize * new float2(starti, j), PaletteType.Shroud, new float2(Game.CellSize * (i - starti), Game.CellSize)); - r.DrawSprite(sprites[i-1, j], - Game.CellSize * new float2(i-1, j), - PaletteType.Shroud); starti = i+1; }