Merge pull request #8964 from Mailaender/human-observers
Fixed neutral actors being visible in the All Players observer shroud mode
This commit is contained in:
@@ -137,8 +137,8 @@ namespace OpenRA
|
||||
public Dictionary<Player, Stance> Stances = new Dictionary<Player, Stance>();
|
||||
public bool IsAlliedWith(Player p)
|
||||
{
|
||||
// Observers are considered as allies
|
||||
return p == null || Stances[p] == Stance.Ally || p.Spectating;
|
||||
// Observers are considered allies to active combatants
|
||||
return p == null || Stances[p] == Stance.Ally || (p.Spectating && !NonCombatant);
|
||||
}
|
||||
|
||||
public void SetStance(Player target, Stance s)
|
||||
|
||||
Reference in New Issue
Block a user