diff --git a/OpenRa.Game/Chrome.cs b/OpenRa.Game/Chrome.cs index 130f1f1032..8b4e5e8158 100644 --- a/OpenRa.Game/Chrome.cs +++ b/OpenRa.Game/Chrome.cs @@ -302,7 +302,8 @@ namespace OpenRa var y = r.Top + 50; - int numListItems = (int) Math.Floor( (decimal) ((r.Bottom - 60 - y ) / 20)); + int numListItems = ((r.Bottom - 60 - y ) / 20); + for(int i = mapOffset; i < numListItems + mapOffset; i++, y += 20){ var map = mapList.Value.ElementAt(i); var itemRect = new Rectangle(r.Left + 50, y - 2, r.Width - 340, 20);