From 4fed02cd74621bf4a92e1392e951b034223e9c73 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 4 Jan 2015 13:05:27 +0100 Subject: [PATCH] Make health bars 2 pixels shorter --- OpenRA.Game/Graphics/SelectionBarsRenderable.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Graphics/SelectionBarsRenderable.cs b/OpenRA.Game/Graphics/SelectionBarsRenderable.cs index d430abf393..b7aab12f19 100644 --- a/OpenRA.Game/Graphics/SelectionBarsRenderable.cs +++ b/OpenRA.Game/Graphics/SelectionBarsRenderable.cs @@ -147,8 +147,8 @@ namespace OpenRA.Graphics var bounds = actor.Bounds; bounds.Offset(screenPos.X, screenPos.Y); - var start = new float2(bounds.Left, bounds.Top); - var end = new float2(bounds.Right, bounds.Top); + var start = new float2(bounds.Left + 1, bounds.Top); + var end = new float2(bounds.Right - 1, bounds.Top); DrawHealthBar(wr, health, start, end); DrawExtraBars(wr, start, end);