Removed pointless for loop in CB2_InitBattleInternal (#3422)
This commit is contained in:
parent
3409869f9c
commit
0f979ac796
1 changed files with 2 additions and 5 deletions
|
@ -596,14 +596,11 @@ static void CB2_InitBattleInternal(void)
|
||||||
gSaveBlock2Ptr->frontier.disableRecordBattle = FALSE;
|
gSaveBlock2Ptr->frontier.disableRecordBattle = FALSE;
|
||||||
|
|
||||||
for (i = 0; i < PARTY_SIZE; i++)
|
for (i = 0; i < PARTY_SIZE; i++)
|
||||||
|
{
|
||||||
AdjustFriendship(&gPlayerParty[i], FRIENDSHIP_EVENT_LEAGUE_BATTLE);
|
AdjustFriendship(&gPlayerParty[i], FRIENDSHIP_EVENT_LEAGUE_BATTLE);
|
||||||
|
|
||||||
// Apply party-wide start-of-battle form changes
|
// Apply party-wide start-of-battle form changes for both sides.
|
||||||
for (i = 0; i < PARTY_SIZE; i++)
|
|
||||||
{
|
|
||||||
// Player's side
|
|
||||||
TryFormChange(i, B_SIDE_PLAYER, FORM_CHANGE_BEGIN_BATTLE);
|
TryFormChange(i, B_SIDE_PLAYER, FORM_CHANGE_BEGIN_BATTLE);
|
||||||
// Opponent's side
|
|
||||||
TryFormChange(i, B_SIDE_OPPONENT, FORM_CHANGE_BEGIN_BATTLE);
|
TryFormChange(i, B_SIDE_OPPONENT, FORM_CHANGE_BEGIN_BATTLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue