Fix map preview bounds calculation.

This commit is contained in:
Paul Chote
2021-08-20 18:41:57 +01:00
committed by abcdefg30
parent 7f94d67d39
commit 3551eb3128
2 changed files with 30 additions and 7 deletions

View File

@@ -193,7 +193,7 @@ namespace OpenRA.Mods.Common.Widgets
top = Math.Min(top, allTop.MinBy(uv => uv.V).V);
if (allBottom.Any())
bottom = Math.Max(bottom, allBottom.MinBy(uv => uv.V).V);
bottom = Math.Max(bottom, allBottom.MaxBy(uv => uv.V).V);
}
var b = Rectangle.FromLTRB(left, top, right, bottom);