Convert Health Radius to world coordinates.

This commit is contained in:
Paul Chote
2013-12-24 22:22:56 +13:00
parent aa2f865d5d
commit c49b06fdde
3 changed files with 4 additions and 6 deletions

View File

@@ -42,10 +42,7 @@ namespace OpenRA.Mods.RA
return;
if (health.Value != null)
{
var range = new WRange((int)(health.Value.Info.Radius * 1024 / Game.CellSize));
wr.DrawRangeCircle(self.CenterPosition, range, Color.Red);
}
wr.DrawRangeCircle(self.CenterPosition, health.Value.Info.Radius, Color.Red);
var wlr = Game.Renderer.WorldLineRenderer;
var c = Color.White;