Cache ProjectedCellBounds during load time

This commit is contained in:
abcdefg30
2020-05-22 13:47:35 +02:00
committed by teinarss
parent 173aae1f81
commit 889e2152a4
5 changed files with 12 additions and 11 deletions

View File

@@ -134,7 +134,7 @@ namespace OpenRA.Mods.Common.Widgets
if (newShroud != null)
{
newShroud.OnShroudChanged += UpdateShroudCell;
foreach (var puv in world.Map.ProjectedCellBounds)
foreach (var puv in world.Map.ProjectedCells)
UpdateShroudCell(puv);
}