diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 092bf6898d..0219b7fe72 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -117,11 +117,6 @@ namespace OpenRA world = new World(); - Game.world.ActorAdded += a => - { - if (a.Owner != null && a.Info.Traits.Contains()) - a.Owner.Shroud.Explore(a); - }; Timer.Time( "world: {0}" ); SequenceProvider.Initialize(manifest.Sequences); diff --git a/OpenRA.Game/ShroudRenderer.cs b/OpenRA.Game/ShroudRenderer.cs index ca9fb59cc8..78ba461704 100644 --- a/OpenRA.Game/ShroudRenderer.cs +++ b/OpenRA.Game/ShroudRenderer.cs @@ -61,9 +61,6 @@ namespace OpenRA public bool DisplayOnRadar(int x, int y) { return IsExplored(x, y); } - public void Explore(World w, int2 center, int range) { dirty = true; } - public void Explore(Actor a) { if (a.Owner == a.World.LocalPlayer) dirty = true; } - static readonly byte[][] SpecialShroudTiles = { new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, diff --git a/OpenRA.Game/Traits/Mobile.cs b/OpenRA.Game/Traits/Mobile.cs index 76f4ed264e..7822dc2624 100644 --- a/OpenRA.Game/Traits/Mobile.cs +++ b/OpenRA.Game/Traits/Mobile.cs @@ -52,11 +52,7 @@ namespace OpenRA.Traits { self.World.WorldActor.traits.Get().Remove(self, this); self.Location = value; - self.World.WorldActor.traits.Get().UpdateActor(self); - - // todo: dies - self.Owner.Shroud.Explore(self); } self.World.WorldActor.traits.Get().Add(self, this); }