summaryrefslogtreecommitdiff
path: root/src/pokemon_animation.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-12-13 18:43:55 -0500
committerGitHub <noreply@github.com>2020-12-13 18:43:55 -0500
commit6dea3374d2277468828c71ef1fb083d85cdcd2ff (patch)
tree2004caa1a6dadb0204288c954ae588b3b8df39db /src/pokemon_animation.c
parent5fa47dc895cefe81240bbece9e48b67eb65a6a97 (diff)
parent70310686419fb34a16b5dfba27b6cd15f65913cc (diff)
Merge pull request #1271 from Sierraffinity/pkmn_affine_anim_bugfix
Add bugfix for Pokémon with affine transforms as part of their entry animation glitching when being sent out/put back in ball
Diffstat (limited to 'src/pokemon_animation.c')
-rw-r--r--src/pokemon_animation.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pokemon_animation.c b/src/pokemon_animation.c
index bfcf77b5c..58c174263 100644
--- a/src/pokemon_animation.c
+++ b/src/pokemon_animation.c
@@ -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)