From 67ca37326e2ff9383825f3c0ccd7c62718470bdd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Tue, 12 Mar 2013 10:15:04 +1300 Subject: [PATCH] fix desync on win/lose --- OpenRA.Mods.RA/ConquestVictoryConditions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/ConquestVictoryConditions.cs b/OpenRA.Mods.RA/ConquestVictoryConditions.cs index 94675e9198..32750b10ed 100644 --- a/OpenRA.Mods.RA/ConquestVictoryConditions.cs +++ b/OpenRA.Mods.RA/ConquestVictoryConditions.cs @@ -60,9 +60,9 @@ namespace OpenRA.Mods.RA foreach (var a in self.World.Actors.Where(a => a.Owner == self.Owner)) a.Kill(a); + self.Owner.Shroud.Disabled = true; if (self.Owner == self.World.LocalPlayer) { - self.World.RenderedShroud.Disabled = true; Game.RunAfterDelay(Info.NotificationDelay, () => { if (Game.IsCurrentWorld(self.World)) @@ -77,9 +77,9 @@ namespace OpenRA.Mods.RA self.Owner.WinState = WinState.Won; Game.Debug("{0} is victorious.".F(self.Owner.PlayerName)); + self.Owner.Shroud.Disabled = true; if (self.Owner == self.World.LocalPlayer) { - self.World.RenderedShroud.Disabled = true; Game.RunAfterDelay(Info.NotificationDelay, () => Sound.PlayNotification(self.Owner, "Speech", "Win", self.Owner.Country.Race)); } }