From d8c053253d692f6f6f65ea3c5258628bdf073f5b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 24 Aug 2010 23:24:36 +1200 Subject: [PATCH] wtf? --- OpenRA.Game/Graphics/Viewport.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Game/Graphics/Viewport.cs b/OpenRA.Game/Graphics/Viewport.cs index d40691d74b..08bf870ace 100644 --- a/OpenRA.Game/Graphics/Viewport.cs +++ b/OpenRA.Game/Graphics/Viewport.cs @@ -50,7 +50,7 @@ namespace OpenRA.Graphics { Timer.Time( "DrawRegions start" ); - renderer.BeginFrame(scrollPosition.ToInt2()); + renderer.BeginFrame(scrollPosition); world.WorldRenderer.Draw(); Timer.Time( "worldRenderer: {0}" ); @@ -93,7 +93,7 @@ namespace OpenRA.Graphics public void Center(int2 loc) { - scrollPosition = (Game.CellSize*loc - .5f * new float2(Width, Height)).ToInt2(); + scrollPosition = (Game.CellSize*loc - .5f * new float2(Width, Height)); } public void Center(IEnumerable actors) @@ -104,7 +104,7 @@ namespace OpenRA.Graphics .Select(a => a.CenterLocation) .Aggregate((a, b) => a + b); - scrollPosition = (avgPos - .5f * new float2(Width, Height)).ToInt2(); + scrollPosition = (avgPos - .5f * new float2(Width, Height)); } public Rectangle? ShroudBounds()