Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pkmnsnfrn and AlexOn1ine committed Jul 12, 2024
1 parent 9b66584 commit f06f2b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pokeball.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,15 +616,15 @@ static void Task_DoPokeballSendOutAnim(u8 taskId)
PlaySE(SE_BALL_THROW);
}

static void DoPokeballSendOutSoundEffect(void)
static inline void DoPokeballSendOutSoundEffect(void)
{
if (B_THROW_BALLS_SOUND < GEN_5)
return;

PlaySE(SE_BALL_THROW);
}

static void *GetOpponentMonSendOutCallback(void)
static inline void *GetOpponentMonSendOutCallback(void)
{
return (B_OPPONENT_THROW_BALLS >= GEN_6) ? SpriteCB_MonSendOut_1 : SpriteCB_OpponentMonSendOut;
}
Expand Down Expand Up @@ -1130,7 +1130,7 @@ static void SpriteCB_BallThrow_CaptureMon(struct Sprite *sprite)
}
}

static bool32 IsBattlerPlayer(u32 battler)
static inline bool32 IsBattlerPlayer(u32 battler)
{
return (battler % B_POSITION_PLAYER_RIGHT) ? FALSE : TRUE;
}
Expand Down

0 comments on commit f06f2b5

Please sign in to comment.