From d3a93c94315daae6faf7b4fc60888574fd7b05bf Mon Sep 17 00:00:00 2001 From: Hedara Date: Wed, 18 Dec 2024 22:05:47 +0100 Subject: [PATCH] Fix for if people change from one setting to another --- src/daycare.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/daycare.c b/src/daycare.c index ccd92658015f..fa01f1408231 100644 --- a/src/daycare.c +++ b/src/daycare.c @@ -1155,10 +1155,10 @@ static bool8 TryProduceOrHatchEgg(struct DayCare *daycare) // Try to hatch Egg daycare->stepCounter++; - if ((P_EGG_CYCLE_LENGTH <= GEN_3 && daycare->stepCounter == 256) - || (P_EGG_CYCLE_LENGTH == GEN_4 && daycare->stepCounter == 255) - || ((P_EGG_CYCLE_LENGTH == GEN_5 || P_EGG_CYCLE_LENGTH == GEN_6) && daycare->stepCounter == 257) - || (P_EGG_CYCLE_LENGTH >= GEN_8 && daycare->stepCounter == 128)) + if ((P_EGG_CYCLE_LENGTH <= GEN_3 && daycare->stepCounter >= 256) + || (P_EGG_CYCLE_LENGTH == GEN_4 && daycare->stepCounter >= 255) + || ((P_EGG_CYCLE_LENGTH == GEN_5 || P_EGG_CYCLE_LENGTH == GEN_6) && daycare->stepCounter >= 257) + || (P_EGG_CYCLE_LENGTH >= GEN_8 && daycare->stepCounter >= 128)) { u32 eggCycles; u8 toSub = GetEggCyclesToSubtract();