From 2f962452e58f1532dc67ccb2f07269a91100f3c7 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 25 Oct 2010 09:14:22 +1300 Subject: [PATCH] fix compile failure in prev --- OpenRA.Game/Graphics/Viewport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Graphics/Viewport.cs b/OpenRA.Game/Graphics/Viewport.cs index addc87f36b..9f0c1bb5ee 100755 --- a/OpenRA.Game/Graphics/Viewport.cs +++ b/OpenRA.Game/Graphics/Viewport.cs @@ -126,7 +126,7 @@ namespace OpenRA.Graphics public void Center(float2 loc) { - scrollPosition = this.NormalizeScrollPosition(Game.CellSize*loc - screenSize / 2); + scrollPosition = this.NormalizeScrollPosition((Game.CellSize*loc - screenSize / 2).ToInt2()); } public void Center(IEnumerable actors)