Fix #1165 - PowerdownIndicator now works for replays/spec

This commit is contained in:
Curtis S
2011-09-12 20:06:28 -06:00
committed by Chris Forbes
parent be1a041a8c
commit 561bec9ada

View File

@@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA.Effects
public IEnumerable<Renderable> Render()
{
if (!a.Destroyed && a.Owner.Stances[a.Owner.World.LocalPlayer] == Stance.Ally)
if (!a.Destroyed && (a.World.LocalPlayer == null || 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);
}