fixed problem with centering yielding fractional positions

This commit is contained in:
Chris Forbes
2009-12-29 20:12:06 +13:00
parent d82aebe90f
commit 25726342c6

View File

@@ -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()