Fix MindBlown crash on MyBoy/No Cash (#6112)

This commit is contained in:
DizzyEggg 2025-01-26 16:06:13 +01:00 committed by GitHub
parent 0339f684c3
commit b3543cbc59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7844,8 +7844,8 @@ static void SpriteCB_MindBlownBall(struct Sprite *sprite)
sprite->data[3] = gBattleAnimArgs[2];
sprite->data[4] = sprite->x << 4;
sprite->data[5] = sprite->y << 4;
sprite->data[6] = ((oldPosX - sprite->x) << 4) / (gBattleAnimArgs[0] << 1);
sprite->data[7] = ((oldPosY - sprite->y) << 4) / (gBattleAnimArgs[0] << 1);
sprite->data[6] = SAFE_DIV((oldPosX - sprite->x) << 4, gBattleAnimArgs[0] << 1);
sprite->data[7] = SAFE_DIV((oldPosY - sprite->y) << 4, gBattleAnimArgs[0] << 1);
sprite->callback = AnimMindBlownBallStep;
}
static void AnimMindBlownBallStep(struct Sprite *sprite)