diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-03-29 09:38:19 -0400 |
---|---|---|
committer | GriffinR <griffin.g.richards@gmail.com> | 2021-03-29 09:38:19 -0400 |
commit | 62968895ca220cf5b6f7c066e9061cf45fe7913e (patch) | |
tree | 43b983e09edbe4478f3c11399e4ec2f4d7338e37 /src/battle_anim_mons.c | |
parent | 357c5439f5170ec1ebb1fe52c00d8d934b65c6bc (diff) |
Add MON_PIC_SIZE constant
Diffstat (limited to 'src/battle_anim_mons.c')
-rw-r--r-- | src/battle_anim_mons.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle_anim_mons.c b/src/battle_anim_mons.c index 3f4a35475..3f8ccad52 100644 --- a/src/battle_anim_mons.c +++ b/src/battle_anim_mons.c @@ -107,8 +107,8 @@ static const struct SpriteTemplate sSpriteTemplate_MoveEffectMons[] = static const struct SpriteSheet sSpriteSheet_MoveEffectMons[] = { - { gMiscBlank_Gfx, 0x800, TAG_MOVE_EFFECT_MON_1, }, - { gMiscBlank_Gfx, 0x800, TAG_MOVE_EFFECT_MON_2, }, + { gMiscBlank_Gfx, MON_PIC_SIZE, TAG_MOVE_EFFECT_MON_1, }, + { gMiscBlank_Gfx, MON_PIC_SIZE, TAG_MOVE_EFFECT_MON_2, }, }; u8 GetBattlerSpriteCoord(u8 battlerId, u8 coordType) @@ -2068,7 +2068,7 @@ u8 CreateAdditionalMonSpriteForMoveAnim(u16 species, bool8 isBackpic, u8 id, s16 FALSE); } - RequestDma3Copy(gMonSpritesGfxPtr->buffer, (void *)(OBJ_VRAM0 + (sheet * 0x20)), 0x800, 1); + RequestDma3Copy(gMonSpritesGfxPtr->buffer, (void *)(OBJ_VRAM0 + (sheet * 0x20)), MON_PIC_SIZE, 1); FREE_AND_SET_NULL(gMonSpritesGfxPtr->buffer); if (!isBackpic) |