Fixed Cheat Start not initiating time-based events (#3446)

This commit is contained in:
Eduardo Quezada D'Ottone 2023-10-22 16:03:54 -03:00 committed by GitHub
parent 8a6284c408
commit 7fdc4aacda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@
// TODO: time of day and seconds in a day defines
void InitTimeBasedEvents(void);
void DoTimeBasedEvents(void);
#endif // GUARD_CLOCK_H

View File

@ -15,7 +15,7 @@
static void UpdatePerDay(struct Time *localTime);
static void UpdatePerMinute(struct Time *localTime);
static void InitTimeBasedEvents(void)
void InitTimeBasedEvents(void)
{
FlagSet(FLAG_SYS_CLOCK_SET);
RtcCalcLocalTime();

View File

@ -9,6 +9,7 @@
#include "global.h"
#include "battle.h"
#include "battle_setup.h"
#include "clock.h"
#include "coins.h"
#include "credits.h"
#include "data.h"
@ -1983,6 +1984,7 @@ static void DebugAction_Util_Clear_Boxes(u8 taskId)
}
static void DebugAction_Util_CheatStart(u8 taskId)
{
InitTimeBasedEvents();
Debug_DestroyMenu_Full_Script(taskId, Debug_CheatStart);
}
static void DebugAction_Util_HatchAnEgg(u8 taskId)