Fix Double Iron Bash move animation crash on MyBoy/No$ (#6114)

This commit is contained in:
DizzyEggg 2025-01-26 16:23:33 +01:00 committed by GitHub
parent b3543cbc59
commit 99c24c5c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1029,8 +1029,8 @@ void InitAnimLinearTranslation(struct Sprite *sprite)
u16 xDelta = abs(x) << 8;
u16 yDelta = abs(y) << 8;
xDelta = xDelta / sprite->data[0];
yDelta = yDelta / sprite->data[0];
xDelta = SAFE_DIV(xDelta, sprite->data[0]);
yDelta = SAFE_DIV(yDelta, sprite->data[0]);
if (movingLeft)
xDelta |= 1;