From 904c6b76b5f0bef2191e9618cd5aee3226d6311b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 11 May 2013 12:52:11 +0200 Subject: [PATCH] fixes #3178 invisible superpower charge bars in spectator mode --- OpenRA.Mods.RA/SupportPowers/SupportPowerChargeBar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/SupportPowers/SupportPowerChargeBar.cs b/OpenRA.Mods.RA/SupportPowers/SupportPowerChargeBar.cs index 57c6735cdd..ba705da377 100644 --- a/OpenRA.Mods.RA/SupportPowers/SupportPowerChargeBar.cs +++ b/OpenRA.Mods.RA/SupportPowers/SupportPowerChargeBar.cs @@ -27,7 +27,7 @@ namespace OpenRA.Mods.RA public float GetValue() { // only people we like should see our charge status. - if (self.World.LocalPlayer != null && self.Owner.Stances[self.World.LocalPlayer] != Stance.Ally) + if (!self.Owner.IsAlliedWith(self.World.RenderPlayer)) return 0; var spm = self.Owner.PlayerActor.Trait();