From 914f79917c1a868120dfe0f9756b63b749877b09 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 12 Apr 2010 20:39:27 +1200 Subject: [PATCH] fix bad vis on paradrops; warning issued whenever shroud sees a vis bug now --- OpenRA.Game/Traits/World/Shroud.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OpenRA.Game/Traits/World/Shroud.cs b/OpenRA.Game/Traits/World/Shroud.cs index 8e3c7dc0ea..8d6f0df3e2 100644 --- a/OpenRA.Game/Traits/World/Shroud.cs +++ b/OpenRA.Game/Traits/World/Shroud.cs @@ -75,6 +75,12 @@ namespace OpenRA.Traits { if (a.Owner == null || a.Owner != a.Owner.World.LocalPlayer) return; + if (vis.ContainsKey(a)) + { + Game.Debug("Warning: Actor {0}:{1} at {2} bad vis".F(a.Info.Name, a.ActorID, a.Location)); + RemoveActor(a); + } + var v = new ActorVisibility { range = a.Info.Traits.Get().Sight,