diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2022-11-29 18:30:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-30 00:30:52 +0100 |
| commit | 7e9c5d428cba2a30eab325ff567a5220e635d94c (patch) | |
| tree | 54e4beb3b695b22a0ea5ea014016190be8c90c26 /soh/src/code | |
| parent | 3cb9f93ff47fa1483de997d667c0f7b8318cd081 (diff) | |
Use gerudo fortress enum (#2040)
Co-authored-by: briaguya <briaguya@alice>
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_sram.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/soh/src/code/z_sram.c b/soh/src/code/z_sram.c index 9cdc54b01..822852bd6 100644 --- a/soh/src/code/z_sram.c +++ b/soh/src/code/z_sram.c @@ -539,8 +539,8 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) { // skip verbose lake owl, skip to "i'm on my way back to the castle" gSaveContext.infTable[25] |= 0x20; - // fast gerudo fortress - if (Randomizer_GetSettingValue(RSK_GERUDO_FORTRESS) == 1 || Randomizer_GetSettingValue(RSK_GERUDO_FORTRESS) == 2) { + if (Randomizer_GetSettingValue(RSK_GERUDO_FORTRESS) == RO_GF_FAST || + Randomizer_GetSettingValue(RSK_GERUDO_FORTRESS) == RO_GF_OPEN) { gSaveContext.eventChkInf[9] |= 2; gSaveContext.eventChkInf[9] |= 4; gSaveContext.eventChkInf[9] |= 8; @@ -558,8 +558,7 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) { gSaveContext.sceneFlags[12].collect |= (1 << 0x0F); } - // open gerudo fortress - if (Randomizer_GetSettingValue(RSK_GERUDO_FORTRESS) == 2) { + if (Randomizer_GetSettingValue(RSK_GERUDO_FORTRESS) == RO_GF_OPEN) { gSaveContext.eventChkInf[9] |= 1; gSaveContext.sceneFlags[12].swch |= (1 << 0x01); gSaveContext.sceneFlags[12].swch |= (1 << 0x05); |
