From 561bec9ada3999727d14a39272b046d74473803d Mon Sep 17 00:00:00 2001 From: Curtis S Date: Mon, 12 Sep 2011 20:06:28 -0600 Subject: [PATCH] Fix #1165 - PowerdownIndicator now works for replays/spec --- OpenRA.Mods.RA/Effects/PowerdownIndicator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Effects/PowerdownIndicator.cs b/OpenRA.Mods.RA/Effects/PowerdownIndicator.cs index d15c95849e..165488177a 100644 --- a/OpenRA.Mods.RA/Effects/PowerdownIndicator.cs +++ b/OpenRA.Mods.RA/Effects/PowerdownIndicator.cs @@ -36,7 +36,7 @@ namespace OpenRA.Mods.RA.Effects public IEnumerable 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); }