Merge pull request #1835 from Jaizu/patch-29

Fix ANIM_SPRITE on regular builds with BUGFIX.
This commit is contained in:
GriffinR 2022-12-29 10:17:57 -05:00 committed by GitHub
commit 8c61869638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -901,11 +901,11 @@ u8 GetSpeciesBackAnimSet(u16 species)
// as 0xFFFFXXXX instead of the desired 0x02YYXXXX. // as 0xFFFFXXXX instead of the desired 0x02YYXXXX.
// By dumb luck, this is not an issue in vanilla. However, // By dumb luck, this is not an issue in vanilla. However,
// changing the link order revealed this bug. // changing the link order revealed this bug.
#if MODERN #if MODERN || defined(BUGFIX)
#define ANIM_SPRITE(taskId) ((struct Sprite *)((gTasks[taskId].tPtrHi << 16) | ((u16)gTasks[taskId].tPtrLo))) #define ANIM_SPRITE(taskId) ((struct Sprite *)((gTasks[taskId].tPtrHi << 16) | ((u16)gTasks[taskId].tPtrLo)))
#else #else
#define ANIM_SPRITE(taskId) ((struct Sprite *)((gTasks[taskId].tPtrHi << 16) | (gTasks[taskId].tPtrLo))) #define ANIM_SPRITE(taskId) ((struct Sprite *)((gTasks[taskId].tPtrHi << 16) | (gTasks[taskId].tPtrLo)))
#endif //MODERN #endif //MODERN || BUGFIX
static void Task_HandleMonAnimation(u8 taskId) static void Task_HandleMonAnimation(u8 taskId)
{ {