fix #2661: desyncs with shroud/exploration cheats

This commit is contained in:
Chris Forbes
2013-03-01 09:28:13 +13:00
parent 6bd3de8ec8
commit 7e1ee0e2e5

View File

@@ -76,8 +76,7 @@ namespace OpenRA.Traits
case "DevShroud":
{
DisableShroud ^= true;
if (self.World.LocalPlayer == self.Owner)
self.World.RenderedShroud.Disabled = DisableShroud;
self.Owner.Shroud.Disabled = DisableShroud;
break;
}
case "DevPathDebug":
@@ -87,8 +86,7 @@ namespace OpenRA.Traits
}
case "DevGiveExploration":
{
if (self.World.LocalPlayer == self.Owner)
self.World.LocalPlayer.Shroud.ExploreAll(self.World);
self.Owner.Shroud.ExploreAll(self.World);
break;
}
case "DevUnlimitedPower":