avoid observers being allied to world owning neutral players
This commit is contained in:
@@ -137,8 +137,8 @@ namespace OpenRA
|
|||||||
public Dictionary<Player, Stance> Stances = new Dictionary<Player, Stance>();
|
public Dictionary<Player, Stance> Stances = new Dictionary<Player, Stance>();
|
||||||
public bool IsAlliedWith(Player p)
|
public bool IsAlliedWith(Player p)
|
||||||
{
|
{
|
||||||
// Observers are considered as allies
|
// Observers are considered allies to active combatants
|
||||||
return p == null || Stances[p] == Stance.Ally || p.Spectating;
|
return p == null || Stances[p] == Stance.Ally || (p.Spectating && !NonCombatant);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetStance(Player target, Stance s)
|
public void SetStance(Player target, Stance s)
|
||||||
|
|||||||
Reference in New Issue
Block a user