fix various desyncs when using cheats

This commit is contained in:
Chris Forbes
2010-09-23 20:50:35 +12:00
parent 66493031c8
commit 45c77e64ee
2 changed files with 4 additions and 7 deletions

View File

@@ -8,13 +8,13 @@
*/ */
#endregion #endregion
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Windows.Forms; using System.Windows.Forms;
using OpenRA.FileFormats; using OpenRA.FileFormats;
using OpenRA.FileFormats.Graphics; using OpenRA.FileFormats.Graphics;
using System;
namespace OpenRA.GameRules namespace OpenRA.GameRules
{ {

View File

@@ -68,17 +68,14 @@ namespace OpenRA.Traits
} }
case "DevShroud": case "DevShroud":
{ {
DisableShroud ^= true;
if (self.World.LocalPlayer == self.Owner) if (self.World.LocalPlayer == self.Owner)
{
DisableShroud ^= true;
Game.world.LocalPlayer.Shroud.Disabled = DisableShroud; Game.world.LocalPlayer.Shroud.Disabled = DisableShroud;
}
break; break;
} }
case "DevPathDebug": case "DevPathDebug":
{ {
if (self.World.LocalPlayer == self.Owner) PathDebug ^= true;
PathDebug ^= true;
break; break;
} }
case "DevUnitDebug": case "DevUnitDebug":