Starting to add sprite compatibility

This commit is contained in:
The Gears of Progress
2025-05-27 16:48:04 -04:00
parent 03c3e0540b
commit 42815f166f
7 changed files with 17 additions and 6 deletions

View File

@@ -914,9 +914,7 @@ void update_menu_sprite(Pokemon_Party *party_data, int index, int frame)
{
dex_num = 0;
}
u32 sprite_table = 0x0857bca8;
u32 sprite_location = (*(u32 *)(sprite_table + (dex_num * 4))) + (frame == 0 ? 0 : 512);
u32 sprite_location = (*(u32 *)(curr_rom.loc_gMonIconTable + (dex_num * 4))) + (frame == 0 ? 0 : 512);
tonccpy(&tile_mem[SPRITE_CHAR_BLOCK][curr_tile_id], (const unsigned int *)sprite_location, 512);
}