From 68ce97cd906164aadbd3db5b318a59285af962dc Mon Sep 17 00:00:00 2001 From: gruxor <95389790+gruxor@users.noreply.github.com> Date: Sun, 2 Jul 2023 19:41:47 -0400 Subject: [PATCH] Fixed shadows in viewer (#3094) * Fixed shadows in viewer + minor arg signature fix * Unfixed castform functions, upcoming removal --- src/pokemon_debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pokemon_debug.c b/src/pokemon_debug.c index 2e9f045069..d3277caa98 100644 --- a/src/pokemon_debug.c +++ b/src/pokemon_debug.c @@ -1298,8 +1298,9 @@ static void ApplyOffsetSpriteValues(struct PokemonDebugMenu *data) gSprites[data->backspriteId].y = DEBUG_MON_BACK_Y + gMonBackPicCoords[species].y_offset + data->offsetsSpriteValues.offset_back_picCoords; //Front gSprites[data->frontspriteId].y = GetBattlerSpriteFinal_YCustom(species, data->offsetsSpriteValues.offset_front_picCoords, data->offsetsSpriteValues.offset_front_elevation); - //Shadow if one was added - UpdateShadowSpriteInvisible(data); + + if (data->currentSubmenu == 2) + UpdateShadowSpriteInvisible(data); } static void UpdateSubmenuOneOptionValue(u8 taskId, bool8 increment)