fix bad vis on paradrops; warning issued whenever shroud sees a vis bug now

This commit is contained in:
Chris Forbes
2010-04-12 20:39:27 +12:00
parent 9a159108e8
commit 914f79917c

View File

@@ -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<OwnedActorInfo>().Sight,