Make player stance colours universally respected

This commit is contained in:
Gustas
2023-02-25 13:42:43 +02:00
committed by Matthias Mailänder
parent 2f331548e1
commit 5fc36bd45f
38 changed files with 110 additions and 88 deletions

View File

@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Traits
{
foreach (var exitCell in exitCells)
{
var color = self.Owner.Color;
var color = self.OwnerColor();
var vec = exitCell - self.Location;
var center = wr.World.Map.CenterOfCell(exitCell);
yield return new TextAnnotationRenderable(manager.Font, center, 0, color, vec.ToString());
@@ -96,7 +96,7 @@ namespace OpenRA.Mods.Common.Traits
continue;
var exitCellCenter = self.World.Map.CenterOfCell(exitCells[i]);
yield return new LineAnnotationRenderable(spawnPos, exitCellCenter, 1, self.Owner.Color);
yield return new LineAnnotationRenderable(spawnPos, exitCellCenter, 1, self.OwnerColor());
}
}
}