mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-09 04:23:14 -05:00
fix frontier not getting cleared on new game
This commit is contained in:
parent
3dbb3ae7c9
commit
1d5a65e16c
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user