Change Renderable to take centered positions.

This commit is contained in:
Paul Chote
2013-05-12 17:32:37 +12:00
parent d103a187f6
commit d878c96343
23 changed files with 41 additions and 41 deletions

View File

@@ -118,8 +118,8 @@ namespace OpenRA.Mods.RA
yield break;
var bounds = self.Bounds.Value;
yield return new Renderable(RankAnim.Image, new float2(bounds.Right - 6, bounds.Bottom - 8),
wr.Palette("effect"), self.CenterLocation.Y);
var pos = new float2(bounds.Right, bounds.Bottom - 2);
yield return new Renderable(RankAnim.Image, pos, wr.Palette("effect"), self.CenterLocation.Y);
}
}