mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-14 00:01:13 -05:00
fix fill size
This commit is contained in:
parent
22a798eb74
commit
2e36aa677b
|
|
@ -1709,16 +1709,16 @@ void UpdateNickInHealthbox(u8 healthboxSpriteId, struct Pokemon *mon)
|
|||
gSprites[healthboxSpriteId].data[1] = healthboxSpriteId2;
|
||||
gSprites[healthboxSpriteId2].data[1] = SPRITE_NONE;
|
||||
|
||||
u32 fontId = GetFontIdToFit(gDisplayedStringBattle, FONT_SMALL, 0, 55);
|
||||
u32 fontId = GetFontIdToFit(gDisplayedStringBattle, FONT_SMALL, 0, 56);
|
||||
|
||||
if (IsOnPlayerSide(gSprites[healthboxSpriteId].data[6]))
|
||||
{
|
||||
FillSpriteRectColor(healthboxSpriteId, 16, 5, 55, 11, HEALTHBOX_BG_INDEX);
|
||||
FillSpriteRectColor(healthboxSpriteId, 16, 5, 56, 11, HEALTHBOX_BG_INDEX);
|
||||
AddSpriteTextPrinterParameterized6(healthboxSpriteId, fontId, 16, 3, 0, 0, sHealthBoxTextColor, 0, gDisplayedStringBattle);
|
||||
}
|
||||
else
|
||||
{
|
||||
FillSpriteRectColor(healthboxSpriteId, 8, 5, 55, 11, HEALTHBOX_BG_INDEX);
|
||||
FillSpriteRectColor(healthboxSpriteId, 8, 5, 56, 11, HEALTHBOX_BG_INDEX);
|
||||
AddSpriteTextPrinterParameterized6(healthboxSpriteId, fontId, 8, 3, 0, 0, sHealthBoxTextColor, 0, gDisplayedStringBattle);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user