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

@@ -49,8 +49,7 @@ namespace OpenRA.Mods.Common.Traits
protected PPos[] ProjectedCells(Actor self)
{
var map = self.World.Map;
return map.ProjectedCellBounds.ToArray();
return self.World.Map.ProjectedCells;
}
void INotifyActorDisposing.Disposing(Actor self)