From 7f5f2eac6fb80e613791e6d221456ff34fa12c7e Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 6 Oct 2017 23:52:15 +0200 Subject: [PATCH] Don't scale RepairIndicator with zoom --- OpenRA.Mods.Common/Effects/RepairIndicator.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Effects/RepairIndicator.cs b/OpenRA.Mods.Common/Effects/RepairIndicator.cs index 35e80a4b6d..e95cef4f44 100644 --- a/OpenRA.Mods.Common/Effects/RepairIndicator.cs +++ b/OpenRA.Mods.Common/Effects/RepairIndicator.cs @@ -56,7 +56,10 @@ namespace OpenRA.Mods.Common.Effects else palette = wr.Palette(rb.Info.IndicatorPalettePrefix + rb.Repairers[shownPlayer % rb.Repairers.Count].InternalName); - return anim.Render(building.CenterPosition, palette); + // Size shouldn't scale with pixel doubling + // TODO: Remove this RepairIndicator entirely in favor of using WithDecoration + var zoom = 1f / wr.Viewport.Zoom; + return anim.Render(building.CenterPosition, WVec.Zero, 0, palette, zoom); } void CycleRepairer()