diff --git a/include/config/general.h b/include/config/general.h index dc39f4919..2fdac6613 100644 --- a/include/config/general.h +++ b/include/config/general.h @@ -6,7 +6,8 @@ // still has them in the ROM. This is because the developers forgot // to define NDEBUG before release, however this has been changed as // Ruby's actual debug build does not use the AGBPrint features. -#define NDEBUG + +// #define NDEBUG // To enable printf debugging, comment out "#define NDEBUG". This allows // the various AGBPrint functions to be used. (See include/gba/isagbprint.h). diff --git a/include/global.h b/include/global.h index 1bde76b9f..fbc4ec063 100644 --- a/include/global.h +++ b/include/global.h @@ -181,6 +181,7 @@ struct SaveBlock3 #if OW_USE_FAKE_RTC struct Time fakeRTC; #endif + u32 masterSeed; }; extern struct SaveBlock3 *gSaveBlock3Ptr; diff --git a/src/main_menu.c b/src/main_menu.c index 95d8c0647..aee253f90 100644 --- a/src/main_menu.c +++ b/src/main_menu.c @@ -1761,6 +1761,8 @@ static void Task_NewGameBirchSpeech_ProcessModeMenuInput(u8 taskId) case 1: PlaySE(SE_SELECT); gSaveBlock2Ptr->gameMode = 1; + u32 randomSeed = Random32(); + gSaveBlock3Ptr->masterSeed = randomSeed; gTasks[taskId].func = Task_NewGameBirchSpeech_ShrinkPlayer; } }