Revert "Determine stance for spectators based on shroud selection"
This reverts commit e459fde031e3cec120065883eea62a663a097123.
This commit is contained in:
@@ -225,11 +225,7 @@ 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)
|
||||||
{
|
{
|
||||||
// Current shroud selection is used to determine stance for spectators
|
// Observers are considered allies to active combatants
|
||||||
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
|
|
||||||
return p == null || Stances[p] == Stance.Ally || (p.Spectating && !NonCombatant);
|
return p == null || Stances[p] == Stance.Ally || (p.Spectating && !NonCombatant);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user