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

This commit is contained in:
Paul Chote
2018-01-01 12:48:01 +00:00
committed by ltem
parent f8abd5d319
commit 2eb090f153

View File

@@ -253,6 +253,10 @@ namespace OpenRA.Traits
}
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();
@@ -281,6 +285,7 @@ namespace OpenRA.Traits
foreach (var fa in frozenActorsToRemove)
Remove(fa);
});
}
void UpdateDirtyFrozenActorsFromDirtyBins()