Fixed shadows in viewer (#3094)

* Fixed shadows in viewer + minor arg signature fix

* Unfixed castform functions, upcoming removal
This commit is contained in:
gruxor 2023-07-02 19:41:47 -04:00 committed by GitHub
parent a0ad8c817c
commit 68ce97cd90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)