mirror of
https://github.com/pret/pokefirered.git
synced 2026-09-10 18:35:33 -05:00
fix frontier not getting cleared on new game
This commit is contained in:
@@ -85,9 +85,12 @@ static void ClearPokedexFlags(void)
|
||||
memset(&gSaveBlock1Ptr->dexSeen, 0, sizeof(gSaveBlock1Ptr->dexSeen));
|
||||
}
|
||||
|
||||
static void ClearEReaderTrainer(void)
|
||||
static void ClearFrontierRecord(void)
|
||||
{
|
||||
CpuFill32(0, &gSaveBlock2Ptr->frontier.ereaderTrainer, sizeof(gSaveBlock2Ptr->frontier.ereaderTrainer));
|
||||
CpuFill32(0, &gSaveBlock2Ptr->frontier, sizeof(gSaveBlock2Ptr->frontier));
|
||||
|
||||
gSaveBlock2Ptr->frontier.opponentNames[0][0] = EOS;
|
||||
gSaveBlock2Ptr->frontier.opponentNames[1][0] = EOS;
|
||||
}
|
||||
|
||||
static void WarpToPlayersRoom(void)
|
||||
@@ -126,7 +129,7 @@ void NewGameInitData(void)
|
||||
gDifferentSaveFile = TRUE;
|
||||
ZeroPlayerPartyMons();
|
||||
ZeroEnemyPartyMons();
|
||||
ClearEReaderTrainer();
|
||||
ClearFrontierRecord();
|
||||
ClearSav1();
|
||||
ClearSav3();
|
||||
ClearMailData();
|
||||
|
||||
Reference in New Issue
Block a user