Adding clock offset init to debug menu cheat start (#3561)
Co-authored-by: ravepossum <ravepossum@example.com>
This commit is contained in:
parent
c1cdc320bb
commit
89f346345b
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
|||
#include "pokemon_storage_system.h"
|
||||
#include "random.h"
|
||||
#include "region_map.h"
|
||||
#include "rtc.h"
|
||||
#include "script.h"
|
||||
#include "script_pokemon_util.h"
|
||||
#include "sound.h"
|
||||
|
@ -2120,6 +2121,9 @@ static void DebugAction_Util_Clear_Boxes(u8 taskId)
|
|||
|
||||
static void DebugAction_Util_CheatStart(u8 taskId)
|
||||
{
|
||||
if (!FlagGet(FLAG_SYS_CLOCK_SET))
|
||||
RtcInitLocalTimeOffset(0, 0);
|
||||
|
||||
InitTimeBasedEvents();
|
||||
Debug_DestroyMenu_Full_Script(taskId, Debug_CheatStart);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue