Merge RHH/master into Ninjdai1/master

This commit is contained in:
Ninjdai 2023-11-15 08:56:03 +01:00
commit f2cb170585
2 changed files with 12 additions and 11 deletions

View File

@ -28,7 +28,7 @@
extern const struct Evolution gEvolutionTable[][EVOS_PER_MON]; extern const struct Evolution gEvolutionTable[][EVOS_PER_MON];
#define IS_DITTO(species) (gBaseStats[species].eggGroup1 == EGG_GROUP_DITTO || gBaseStats[species].eggGroup2 == EGG_GROUP_DITTO) #define IS_DITTO(species) (gSpeciesInfo[species].eggGroups[0] == EGG_GROUP_DITTO || gSpeciesInfo[species].eggGroups[1] == EGG_GROUP_DITTO)
static void ClearDaycareMonMail(struct DaycareMail *mail); static void ClearDaycareMonMail(struct DaycareMail *mail);
static void SetInitialEggData(struct Pokemon *mon, u16 species, struct DayCare *daycare); static void SetInitialEggData(struct Pokemon *mon, u16 species, struct DayCare *daycare);

View File

@ -162,17 +162,18 @@ void CB2_TestRunner(void)
break; break;
case STATE_ASSIGN_TEST: case STATE_ASSIGN_TEST:
if (gTestRunnerState.test == __stop_tests) while (1)
{ {
gTestRunnerState.state = STATE_EXIT; if (gTestRunnerState.test == __stop_tests)
return; {
} gTestRunnerState.state = STATE_EXIT;
return;
if (gTestRunnerState.test->runner != &gAssumptionsRunner }
&& !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name)) if (gTestRunnerState.test->runner != &gAssumptionsRunner
{ && !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name))
gTestRunnerState.state = STATE_NEXT_TEST; ++gTestRunnerState.test;
return; else
break;
} }
MgbaPrintf_(":N%s", gTestRunnerState.test->name); MgbaPrintf_(":N%s", gTestRunnerState.test->name);