Skip to content

Commit

Permalink
Silence cries in headless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
AsparagusEduardo committed Dec 28, 2024
1 parent bd0e5bc commit de6242f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pokemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -6896,7 +6896,7 @@ void HealBoxPokemon(struct BoxPokemon *boxMon)
u16 GetCryIdBySpecies(u16 species)
{
species = SanitizeSpeciesId(species);
if (P_CRIES_ENABLED == FALSE || gSpeciesInfo[species].cryId >= CRY_COUNT)
if (P_CRIES_ENABLED == FALSE || gSpeciesInfo[species].cryId >= CRY_COUNT || gTestRunnerHeadless)
return CRY_NONE;
return gSpeciesInfo[species].cryId;
}
Expand Down

0 comments on commit de6242f

Please sign in to comment.