Shift RevealsShroud onto Unit; fix "vehicles don't update shroud" regression in last

This commit is contained in:
Paul Chote
2010-07-27 15:15:26 +12:00
parent a91ebb4eda
commit 9a704e69b2
7 changed files with 12 additions and 48 deletions

View File

@@ -67,11 +67,8 @@ namespace OpenRA.Traits
if (a.traits.WithInterface<IRevealShroud>().Count() == 0)
return;
bool shareShroud = true; // Todo: make this a server flag
if (a.Owner == null || a.Owner.World.LocalPlayer == null
|| a.Owner.Stances[a.Owner.World.LocalPlayer] != Stance.Ally) return;
if (!shareShroud && a.Owner != a.Owner.World.LocalPlayer) return;
if (vis.ContainsKey(a))
{