Match all kinds of spectators in Player::IsAlliedWith()

This commit is contained in:
Oliver Brakmann
2015-06-29 18:11:04 +02:00
parent 6ed7e46162
commit fc8a34a7a2

View File

@@ -140,7 +140,7 @@ namespace OpenRA
public bool IsAlliedWith(Player p) public bool IsAlliedWith(Player p)
{ {
// Observers are considered as allies // 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) public void SetStance(Player target, Stance s)