mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
fix style issues
This commit is contained in:
parent
d9b54c3c1c
commit
bcffc2655e
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 236 B |
@ -2994,26 +2994,26 @@ static void AnimMoveFeintSwipeStep(struct Sprite* sprite)
|
||||
{
|
||||
switch(sprite->data[5])
|
||||
{
|
||||
case 0:
|
||||
if(AnimTranslateLinear(sprite))
|
||||
{
|
||||
//Not the most elegant solution here, but it works without messing up the sprites coordinates
|
||||
sprite->pos2.x = 0;
|
||||
sprite->pos1.x += 64;
|
||||
sprite->data[5]++;
|
||||
sprite->data[0] = sprite->data[6];
|
||||
sprite->data[1] = sprite->pos1.x;
|
||||
sprite->data[2] = sprite->pos1.x - 64;
|
||||
sprite->data[3] = sprite->pos1.y;
|
||||
sprite->data[4] = sprite->pos1.y;
|
||||
InitAnimLinearTranslation(sprite);
|
||||
}
|
||||
case 0:
|
||||
if(AnimTranslateLinear(sprite))
|
||||
{
|
||||
//Not the most elegant solution here, but it works without messing up the sprites coordinates
|
||||
sprite->pos2.x = 0;
|
||||
sprite->pos1.x += 64;
|
||||
sprite->data[5]++;
|
||||
sprite->data[0] = sprite->data[6];
|
||||
sprite->data[1] = sprite->pos1.x;
|
||||
sprite->data[2] = sprite->pos1.x - 64;
|
||||
sprite->data[3] = sprite->pos1.y;
|
||||
sprite->data[4] = sprite->pos1.y;
|
||||
InitAnimLinearTranslation(sprite);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
if(AnimTranslateLinear(sprite))
|
||||
{
|
||||
sprite->callback = DestroyAnimSprite;
|
||||
}
|
||||
case 1:
|
||||
if(AnimTranslateLinear(sprite))
|
||||
{
|
||||
sprite->callback = DestroyAnimSprite;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@ -3126,14 +3126,14 @@ static void AnimMoveAccupressureTransition(struct Sprite* sprite)
|
||||
{
|
||||
switch(sprite->data[5])
|
||||
{
|
||||
case 0:
|
||||
case 0:
|
||||
if(AnimTranslateLinear(sprite))
|
||||
{
|
||||
StartSpriteAffineAnim(sprite, 1);
|
||||
sprite->data[5]++;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
case 1:
|
||||
if(sprite->affineAnimEnded)
|
||||
{
|
||||
DestroyAnimSprite(sprite);
|
||||
|
@ -116,8 +116,8 @@ const u32 gBattleAnimSpritePal_Hit2[] = INCBIN_U32("graphics/battle_anims/sprite
|
||||
const u32 gBattleAnimSpritePal_WavingHand[] = INCBIN_U32("graphics/battle_anims/sprites/waving_hand.gbapal.lz");
|
||||
const u32 gBattleAnimSpriteGfx_WavingHand[] = INCBIN_U32("graphics/battle_anims/sprites/waving_hand.4bpp.lz");
|
||||
|
||||
const u32 gBattleAnimSpriteGfx_Feint[] = INCBIN_U32("graphics/battle_anims/sprites/feint-punch.4bpp.lz");
|
||||
const u32 gBattleAnimSpritePal_Feint[] = INCBIN_U32("graphics/battle_anims/sprites/feint-punch.gbapal.lz");
|
||||
const u32 gBattleAnimSpriteGfx_Feint[] = INCBIN_U32("graphics/battle_anims/sprites/feint_punch.4bpp.lz");
|
||||
const u32 gBattleAnimSpritePal_Feint[] = INCBIN_U32("graphics/battle_anims/sprites/feint_punch.gbapal.lz");
|
||||
|
||||
const u32 gBattleAnimSpriteGfx_TrumpCard[] = INCBIN_U32("graphics/battle_anims/sprites/trump_cards.4bpp.lz");
|
||||
const u32 gBattleAnimSpritePal_TrumpCard[] = INCBIN_U32("graphics/battle_anims/sprites/trump_cards.gbapal.lz");
|
||||
|
Loading…
Reference in New Issue
Block a user