PowerdownIndicator will only show to owner and teammates

This commit is contained in:
Curtis S
2011-09-10 22:38:19 -06:00
parent be9948426c
commit 460696192b

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA.Effects
public IEnumerable<Renderable> Render()
{
if (!a.Destroyed)
if (!a.Destroyed && a.Owner.Stances[a.Owner.World.LocalPlayer] == Stance.Ally)
yield return new Renderable(anim.Image,
a.CenterLocation - .5f * anim.Image.size, "chrome", (int)a.CenterLocation.Y);
}