Prevents satellite icons from being drawn over frozen actors.

This commit is contained in:
deniz1a
2015-05-16 15:14:38 +03:00
parent ed4b3f9970
commit 106286da23
3 changed files with 10 additions and 7 deletions

View File

@@ -72,6 +72,7 @@ namespace OpenRA.Mods.Common.Traits
if (!initialized)
{
frozen[player] = frozenActor = new FrozenActor(self, footprint, footprintRegion, player.Shroud);
frozen[player].NeedRenderables = frozenActor.NeedRenderables = startsRevealed;
player.PlayerActor.Trait<FrozenActorLayer>().Add(frozenActor);
isVisible = visible[player] |= startsRevealed;
}