Correct bridge / tree / mine color

This commit is contained in:
Paul Chote
2010-07-22 19:49:27 +12:00
parent 5f36933837
commit f7212ef757
9 changed files with 71 additions and 3 deletions

View File

@@ -169,6 +169,10 @@ namespace OpenRA.Traits
public Color RadarSignatureColor(Actor self)
{
var mod = self.traits.WithInterface<IRadarSignatureModifier>().FirstOrDefault();
if (mod != null)
return mod.RadarColorOverride(self);
return self.Owner.Color;
}
}