Fix RCS1089

This commit is contained in:
RoosterDragon
2023-03-18 12:50:55 +00:00
committed by Gustas
parent 4dd787be13
commit eb287d9b8d
17 changed files with 26 additions and 23 deletions

View File

@@ -41,10 +41,10 @@ namespace OpenRA.Mods.Common.SpriteLoaders
var dataWidth = width;
var dataHeight = height;
if (dataWidth % 2 == 1)
dataWidth += 1;
dataWidth++;
if (dataHeight % 2 == 1)
dataHeight += 1;
dataHeight++;
Offset = new int2(x + (dataWidth - frameSize.Width) / 2, y + (dataHeight - frameSize.Height) / 2);
Size = new Size(dataWidth, dataHeight);