diff --git a/OpenRa.Game/Graphics/Viewport.cs b/OpenRa.Game/Graphics/Viewport.cs index 84c9ca5a2f..9a35a4ef5b 100644 --- a/OpenRa.Game/Graphics/Viewport.cs +++ b/OpenRa.Game/Graphics/Viewport.cs @@ -92,7 +92,7 @@ namespace OpenRa.Game.Graphics .Select(a => a.CenterLocation) .Aggregate((a, b) => a + b); - scrollPosition = avgPos - .5f * new float2(Width, Height); + scrollPosition = (avgPos - .5f * new float2(Width, Height)).ToInt2(); } public void GoToStartLocation()