diff options
author | camthesaxman <cameronghall@cox.net> | 2019-07-28 19:17:39 -0500 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2019-07-28 19:17:39 -0500 |
commit | 00b0b0bb9089684b4b7824e079cbefd006214afd (patch) | |
tree | f7ddb4acd6a65b457663a642f097953dfe000966 /src/hall_of_fame.c | |
parent | bc09f81a9a6a8280480a08e0daf33541ba255fb4 (diff) |
remove hardcoded VRAM and EWRAM addresses
Diffstat (limited to 'src/hall_of_fame.c')
-rw-r--r-- | src/hall_of_fame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hall_of_fame.c b/src/hall_of_fame.c index 5ee025eeb..74db6ac26 100644 --- a/src/hall_of_fame.c +++ b/src/hall_of_fame.c @@ -1298,7 +1298,7 @@ static u32 HallOfFame_LoadPokemonPic(u16 species, s16 posX, s16 posY, u16 pokeID u8 spriteID; const u8* pokePal; - LoadSpecialPokePic(&gMonFrontPicTable[species], gMonFrontPicCoords[species].coords, gMonFrontPicCoords[species].y_offset, 0x2000000, gUnknown_0840B5A0[pokeID], species, pid, 1); + LoadSpecialPokePic(&gMonFrontPicTable[species], gMonFrontPicCoords[species].coords, gMonFrontPicCoords[species].y_offset, EWRAM, gUnknown_0840B5A0[pokeID], species, pid, 1); pokePal = GetMonSpritePalFromOtIdPersonality(species, tid, pid); LoadCompressedPalette(pokePal, 16 * pokeID + 256, 0x20); @@ -1313,7 +1313,7 @@ static u32 HallOfFame_LoadTrainerPic(u16 trainerPicID, s16 posX, s16 posY, u16 a { u8 spriteID; - DecompressPicFromTable_2(&gTrainerFrontPicTable[trainerPicID], gTrainerFrontPicCoords[trainerPicID].coords, gTrainerFrontPicCoords[trainerPicID].y_offset, (void*) 0x2000000, gUnknown_0840B5A0[a3], trainerPicID); + DecompressPicFromTable_2(&gTrainerFrontPicTable[trainerPicID], gTrainerFrontPicCoords[trainerPicID].coords, gTrainerFrontPicCoords[trainerPicID].y_offset, (void*)EWRAM, gUnknown_0840B5A0[a3], trainerPicID); LoadCompressedPalette(gTrainerFrontPicPaletteTable[trainerPicID].data, 16 * a3 + 256, 0x20); sub_8143680(a3, a3); |