Fix affine anim bug with Pokémon going in and out of balls without an intermediate screen transition

This commit is contained in:
Sierraffinity 2020-12-12 20:29:20 -08:00
parent ba3021db64
commit abef3065d0

View file

@ -1041,6 +1041,15 @@ static void sub_817F77C(struct Sprite *sprite)
sprite->oam.matrixNum |= (sprite->hFlip << 3);
sprite->oam.affineMode = ST_OAM_AFFINE_OFF;
}
#ifdef BUGFIX
else
{
// FIX: Reset these back to normal after they were changed so Poké Ball catch/release
// animations without a screen transition in between don't break
sprite->affineAnimPaused = FALSE;
sprite->affineAnims = gUnknown_082FF694;
}
#endif // BUGFIX
}
static void pokemonanimfunc_01(struct Sprite *sprite)