Revert "Fix actors disappearing for a tick when swapping to the frozen actor."

This reverts commit 2eb090f153.

This fixes flicker for the actor->frozen transition, but then introduces the same flicker for the frozen->actor transition instead.
This commit is contained in:
RoosterDragon
2018-01-04 20:01:12 +00:00
committed by reaperrr
parent f6fcf4ca6f
commit c60ca83751

View File

@@ -253,10 +253,6 @@ namespace OpenRA.Traits
} }
void ITick.Tick(Actor self) void ITick.Tick(Actor self)
{
// Update visibility at the end of the tick to make sure that
// the fog/shroud state has been updated for the tick
self.World.AddFrameEndTask(w =>
{ {
UpdateDirtyFrozenActorsFromDirtyBins(); UpdateDirtyFrozenActorsFromDirtyBins();
@@ -285,7 +281,6 @@ namespace OpenRA.Traits
foreach (var fa in frozenActorsToRemove) foreach (var fa in frozenActorsToRemove)
Remove(fa); Remove(fa);
});
} }
void UpdateDirtyFrozenActorsFromDirtyBins() void UpdateDirtyFrozenActorsFromDirtyBins()