Convert indicator overlays to world coordinates.

This commit is contained in:
Paul Chote
2013-05-15 23:48:00 +12:00
parent e382dc9b71
commit 57142fbb8d
3 changed files with 5 additions and 7 deletions

View File

@@ -82,9 +82,8 @@ namespace OpenRA.Mods.RA.Effects
if (!show || self.Destroyed)
yield break;
var p = self.CenterLocation;
var palette = wr.Palette(info.IndicatorPalettePrefix+self.Owner.InternalName);
yield return new SpriteRenderable(anim.Image, p.ToFloat2(), palette, p.Y)
yield return new SpriteRenderable(anim.Image, self.CenterPosition, 0, palette, 1f)
.WithScale(1.5f);
}
}