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:
while (1)
{
if (gTestRunnerState.test == __stop_tests) if (gTestRunnerState.test == __stop_tests)
{ {
gTestRunnerState.state = STATE_EXIT; gTestRunnerState.state = STATE_EXIT;
return; return;
} }
if (gTestRunnerState.test->runner != &gAssumptionsRunner if (gTestRunnerState.test->runner != &gAssumptionsRunner
&& !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name)) && !PrefixMatch(gTestRunnerArgv, gTestRunnerState.test->name))
{ ++gTestRunnerState.test;
gTestRunnerState.state = STATE_NEXT_TEST; else
return; break;
} }
MgbaPrintf_(":N%s", gTestRunnerState.test->name); MgbaPrintf_(":N%s", gTestRunnerState.test->name);