mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Add bugfix from bugs_and_glitches.md to BUGFIX
Item flicker fix now in `BUGFIX` Supersedes and resolves #1680 Fixes #1215 Fixes #1514
This commit is contained in:
parent
03e74c4aff
commit
e42498ab40
@ -544,7 +544,20 @@ void AddBagItemIconSprite(u16 itemId, u8 id)
|
||||
|
||||
void RemoveBagItemIconSprite(u8 id)
|
||||
{
|
||||
#ifdef BUGFIX
|
||||
u8 *spriteId = &gBagMenu->spriteIds[ITEMMENUSPRITE_ITEM];
|
||||
|
||||
if (spriteId[id ^ 1] != SPRITE_NONE)
|
||||
gSprites[spriteId[id ^ 1]].invisible = TRUE;
|
||||
|
||||
if (spriteId[id] != SPRITE_NONE)
|
||||
{
|
||||
DestroySpriteAndFreeResources(&gSprites[spriteId[id]]);
|
||||
spriteId[id] = SPRITE_NONE;
|
||||
}
|
||||
#else
|
||||
RemoveBagSprite(id + ITEMMENUSPRITE_ITEM);
|
||||
#endif
|
||||
}
|
||||
|
||||
void CreateItemMenuSwapLine(void)
|
||||
|
Loading…
Reference in New Issue
Block a user