the rest of yesterday's render changes.

This commit is contained in:
Bob
2009-12-22 11:57:32 +13:00
parent a9157007d0
commit d052fd79e3
7 changed files with 32 additions and 73 deletions

View File

@@ -116,8 +116,9 @@ namespace OpenRa.Game.Traits
public static Tuple<Sprite, float2, int> Centered(Actor self, Sprite s, float2 location)
{
var pal = self.Owner == null ? 0 : self.Owner.Palette;
var loc = location - 0.5f * s.size;
return Tuple.New(s, loc.Round(), self.Owner.Palette);
return Tuple.New(s, loc.Round(), pal);
}
public static Tuple<Sprite, float2, int> CenteredShadow(Actor self, Sprite s, float2 location)