From fc8a34a7a2684dbe317e6dc25a4b7ccde65812e1 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Mon, 29 Jun 2015 18:11:04 +0200 Subject: [PATCH] Match all kinds of spectators in Player::IsAlliedWith() --- OpenRA.Game/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Player.cs b/OpenRA.Game/Player.cs index 6dfd91b9fe..08ca34656b 100644 --- a/OpenRA.Game/Player.cs +++ b/OpenRA.Game/Player.cs @@ -140,7 +140,7 @@ namespace OpenRA public bool IsAlliedWith(Player p) { // Observers are considered as allies - return p == null || Stances[p] == Stance.Ally; + return p == null || Stances[p] == Stance.Ally || p.Spectating; } public void SetStance(Player target, Stance s)