Revert "Determine stance for spectators based on shroud selection"

This reverts commit e459fde031e3cec120065883eea62a663a097123.
This commit is contained in:
Paul Chote
2020-10-29 22:10:02 +00:00
committed by abcdefg30
parent 774f2e0852
commit 9ddc9073c2

View File

@@ -225,11 +225,7 @@ namespace OpenRA
public Dictionary<Player, Stance> Stances = new Dictionary<Player, Stance>();
public bool IsAlliedWith(Player p)
{
// Current shroud selection is used to determine stance for spectators
if (p != null && p.Spectating && !NonCombatant && p.World.RenderPlayer != null)
return Stances[p.World.RenderPlayer] == Stance.Ally;
// Observers are considered allies if RenderPlayer property is null
// Observers are considered allies to active combatants
return p == null || Stances[p] == Stance.Ally || (p.Spectating && !NonCombatant);
}