Try to win a small amount of performance when the shellmap is disabled

This commit is contained in:
abcdefg30
2015-12-23 14:07:09 +01:00
parent 4b2df6d133
commit 64f57ac9a5
3 changed files with 12 additions and 6 deletions

View File

@@ -201,7 +201,7 @@ namespace OpenRA.Mods.Common.Widgets
Game.Sound.StopVideo();
video.Reset();
videoSprite.Sheet.GetTexture().SetData(video.FrameData);
world.AddFrameEndTask(_ => onComplete());
Game.RunAfterTick(onComplete);
}
public void CloseVideo()