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)