Skip to content

Commit

Permalink
Fix for if people change from one setting to another
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedara committed Dec 18, 2024
1 parent 674ead5 commit d3a93c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/daycare.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d3a93c9

Please sign in to comment.