Make PlayerRelationShipColor static
This commit is contained in:
committed by
Matthias Mailänder
parent
fa0254cb27
commit
34262fb33c
@@ -127,7 +127,7 @@ namespace OpenRA.Mods.Common.Graphics
|
||||
Color GetHealthColor(IHealth health)
|
||||
{
|
||||
if (Game.Settings.Game.UsePlayerStanceColors)
|
||||
return actor.Owner.PlayerRelationshipColor(actor);
|
||||
return Player.PlayerRelationshipColor(actor);
|
||||
|
||||
return health.DamageState == DamageState.Critical ? Color.Red :
|
||||
health.DamageState == DamageState.Heavy ? Color.Yellow : Color.LimeGreen;
|
||||
|
||||
Reference in New Issue
Block a user