mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
Merge pull request #1835 from Jaizu/patch-29
Fix ANIM_SPRITE on regular builds with BUGFIX.
This commit is contained in:
commit
8c61869638
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user