Don't scale RepairIndicator with zoom

This commit is contained in:
reaperrr
2017-10-06 23:52:15 +02:00
committed by Pavel Penev
parent d328b9b7d8
commit 7f5f2eac6f

View File

@@ -56,7 +56,10 @@ namespace OpenRA.Mods.Common.Effects
else else
palette = wr.Palette(rb.Info.IndicatorPalettePrefix + rb.Repairers[shownPlayer % rb.Repairers.Count].InternalName); 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() void CycleRepairer()