Merge with master
This commit is contained in:
10
src/tv.c
10
src/tv.c
@@ -2572,13 +2572,13 @@ void sub_80EEA70(void)
|
||||
show->secretBaseSecrets.flags = VarGet(0x40ee) + (VarGet(0x40ef) << 16);
|
||||
tv_store_id_3x(show);
|
||||
show->secretBaseSecrets.language = gGameLanguage;
|
||||
if (show->secretBaseSecrets.language == LANGUAGE_JAPANESE || gSaveBlock1Ptr->secretBases[VarGet(VAR_0x4054)].language == LANGUAGE_JAPANESE)
|
||||
if (show->secretBaseSecrets.language == LANGUAGE_JAPANESE || gSaveBlock1Ptr->secretBases[VarGet(VAR_CURRENT_SECRET_BASE)].language == LANGUAGE_JAPANESE)
|
||||
{
|
||||
show->secretBaseSecrets.baseOwnersNameLanguage = LANGUAGE_JAPANESE;
|
||||
}
|
||||
else
|
||||
{
|
||||
show->secretBaseSecrets.baseOwnersNameLanguage = gSaveBlock1Ptr->secretBases[VarGet(VAR_0x4054)].language;
|
||||
show->secretBaseSecrets.baseOwnersNameLanguage = gSaveBlock1Ptr->secretBases[VarGet(VAR_CURRENT_SECRET_BASE)].language;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3229,9 +3229,9 @@ u16 TV_GetSomeOtherSpeciesAlreadySeenByPlayer(u16 passedSpecies)
|
||||
|
||||
species = (Random() % (NUM_SPECIES - 1)) + 1;
|
||||
initSpecies = species;
|
||||
while (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), 0) != 1 || species == passedSpecies)
|
||||
while (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), FLAG_GET_SEEN) != TRUE || species == passedSpecies)
|
||||
{
|
||||
if (species == 1)
|
||||
if (species == SPECIES_NONE + 1)
|
||||
{
|
||||
species = NUM_SPECIES - 1;
|
||||
}
|
||||
@@ -4376,7 +4376,7 @@ void SetTvShowInactive(u8 showIdx)
|
||||
|
||||
static void sub_80F0B24(u16 species, u8 showIdx)
|
||||
{
|
||||
if (GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), 0) == 0)
|
||||
if (!GetSetPokedexFlag(SpeciesToNationalPokedexNum(species), FLAG_GET_SEEN))
|
||||
{
|
||||
gSaveBlock1Ptr->tvShows[showIdx].common.active = FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user