Merge pull request #9262 from RoosterDragon/frozen-unify-dict

Speed up FrozenUnderFog.Tick
This commit is contained in:
Oliver Brakmann
2015-09-26 20:45:58 +02:00
2 changed files with 27 additions and 15 deletions

View File

@@ -41,13 +41,14 @@ namespace OpenRA.Traits
public DamageState DamageState;
public bool Visible = true;
public bool NeedRenderables;
public bool NeedRenderables { get; private set; }
public bool IsRendering { get; private set; }
public FrozenActor(Actor self, PPos[] footprint, Shroud shroud)
public FrozenActor(Actor self, PPos[] footprint, Shroud shroud, bool startsRevealed)
{
actor = self;
this.shroud = shroud;
NeedRenderables = startsRevealed;
removeFrozenActors = self.TraitsImplementing<IRemoveFrozenActor>().ToArray();
// Consider all cells inside the map area (ignoring the current map bounds)