Draw GPS dots using the UI renderers.

This commit is contained in:
Paul Chote
2019-12-09 20:08:00 +00:00
committed by tovl
parent ae4b2591bf
commit cd368b43df

View File

@@ -106,7 +106,8 @@ namespace OpenRA.Mods.Cnc.Effects
actor.EffectiveOwner.Owner : actor.Owner;
var palette = wr.Palette(info.IndicatorPalettePrefix + effectiveOwner.InternalName);
return anim.Render(actor.CenterPosition, palette);
var screenPos = wr.Viewport.WorldToViewPx(wr.ScreenPxPosition(actor.CenterPosition));
return anim.RenderUI(wr, screenPos, WVec.Zero, 0, palette, 1f);
}
}
}