Fix animations having wrong offsets

This commit is contained in:
Gustas
2025-12-29 21:07:56 +02:00
committed by Paul Chote
parent e5cca8d0b4
commit ed3f809982

View File

@@ -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;