Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Cheat Start not initiating time-based events #3446

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// TODO: time of day and seconds in a day defines

void InitTimeBasedEvents(void);
void DoTimeBasedEvents(void);

#endif // GUARD_CLOCK_H
2 changes: 1 addition & 1 deletion src/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down
Loading