From 54e48a2f68ee49174712e5c3a2246df2b62a060f Mon Sep 17 00:00:00 2001 From: cawtds <38510667+cawtds@users.noreply.github.com> Date: Wed, 8 Jan 2025 22:46:43 +0100 Subject: [PATCH] fix rom header and trainer back anims --- src/data/graphics/trainers.h | 14 +++++++++++++- src/rom_header_gf.c | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/data/graphics/trainers.h b/src/data/graphics/trainers.h index 41677df32..a2b78e894 100644 --- a/src/data/graphics/trainers.h +++ b/src/data/graphics/trainers.h @@ -660,14 +660,26 @@ static const union AnimCmd sAnimCmd_Point_HGSS[] = ANIMCMD_END, }; +static const union AnimCmd sAnimCmd_Point_HGSS_Red_Leaf[] = +{ + ANIMCMD_FRAME(0, 9), + ANIMCMD_FRAME(1, 9), + ANIMCMD_FRAME(3, 24), + ANIMCMD_FRAME(3, 24), + ANIMCMD_FRAME(0, 50), + ANIMCMD_END, +}; + static const union AnimCmd *const sBackAnims_Kanto[] = { sAnim_GeneralFrame0, sAnimCmd_Kanto, + sAnimCmd_Point_HGSS_Red_Leaf, }; const union AnimCmd *const sBackAnims_OldManPokedude[] = { sAnim_GeneralFrame0, - sAnimCmd_OldManPokedude + sAnimCmd_OldManPokedude, + sAnim_GeneralFrame0, }; static const union AnimCmd *const sBackAnims_Hoenn[] = diff --git a/src/rom_header_gf.c b/src/rom_header_gf.c index 535a1e128..6b609fe40 100644 --- a/src/rom_header_gf.c +++ b/src/rom_header_gf.c @@ -99,7 +99,7 @@ struct GFRomHeader // This seems to need to be in the text section for some reason. // To avoid a changed section attributes warning it's put in a special .text.consts section. __attribute__((section(".text.consts"))) -static const struct GFRomHeader sGFRomHeader = { +const struct GFRomHeader sGFRomHeader = { .version = GAME_VERSION, .language = GAME_LANGUAGE, #ifdef FIRERED