From ed3f809982f9eaf947740e6cad03c372d805564d Mon Sep 17 00:00:00 2001 From: Gustas <37534529+PunkPun@users.noreply.github.com> Date: Mon, 29 Dec 2025 21:07:56 +0200 Subject: [PATCH] Fix animations having wrong offsets --- OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs b/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs index 6f3ab2bcb9..77925709c9 100644 --- a/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs +++ b/OpenRA.Mods.Cnc/SpriteLoaders/ShpTDLoader.cs @@ -110,19 +110,6 @@ namespace OpenRA.Mods.Cnc.SpriteLoaders } } - // Keep a 1px empty border to work avoid rounding issues in the GPU shader. - if (left > 0) - left--; - - if (top > 0) - top--; - - if (right < origSize.Width - 1) - right++; - - if (bottom < origSize.Height - 1) - bottom++; - var trimmedWidth = right - left + 1; var trimmedHeight = bottom - top + 1;