mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 19:24:16 +01:00
Fixed Cheat Start not initiating time-based events (#3446)
This commit is contained in:
parent
8a6284c408
commit
7fdc4aacda
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
// TODO: time of day and seconds in a day defines
|
// TODO: time of day and seconds in a day defines
|
||||||
|
|
||||||
|
void InitTimeBasedEvents(void);
|
||||||
void DoTimeBasedEvents(void);
|
void DoTimeBasedEvents(void);
|
||||||
|
|
||||||
#endif // GUARD_CLOCK_H
|
#endif // GUARD_CLOCK_H
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
static void UpdatePerDay(struct Time *localTime);
|
static void UpdatePerDay(struct Time *localTime);
|
||||||
static void UpdatePerMinute(struct Time *localTime);
|
static void UpdatePerMinute(struct Time *localTime);
|
||||||
|
|
||||||
static void InitTimeBasedEvents(void)
|
void InitTimeBasedEvents(void)
|
||||||
{
|
{
|
||||||
FlagSet(FLAG_SYS_CLOCK_SET);
|
FlagSet(FLAG_SYS_CLOCK_SET);
|
||||||
RtcCalcLocalTime();
|
RtcCalcLocalTime();
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "battle.h"
|
#include "battle.h"
|
||||||
#include "battle_setup.h"
|
#include "battle_setup.h"
|
||||||
|
#include "clock.h"
|
||||||
#include "coins.h"
|
#include "coins.h"
|
||||||
#include "credits.h"
|
#include "credits.h"
|
||||||
#include "data.h"
|
#include "data.h"
|
||||||
@ -1983,6 +1984,7 @@ static void DebugAction_Util_Clear_Boxes(u8 taskId)
|
|||||||
}
|
}
|
||||||
static void DebugAction_Util_CheatStart(u8 taskId)
|
static void DebugAction_Util_CheatStart(u8 taskId)
|
||||||
{
|
{
|
||||||
|
InitTimeBasedEvents();
|
||||||
Debug_DestroyMenu_Full_Script(taskId, Debug_CheatStart);
|
Debug_DestroyMenu_Full_Script(taskId, Debug_CheatStart);
|
||||||
}
|
}
|
||||||
static void DebugAction_Util_HatchAnEgg(u8 taskId)
|
static void DebugAction_Util_HatchAnEgg(u8 taskId)
|
||||||
|
Loading…
Reference in New Issue
Block a user