diff options
| author | briaguya <70942617+briaguya-ai@users.noreply.github.com> | 2022-11-29 20:32:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-30 02:32:22 +0100 |
| commit | 06df45efc718d04502018736921e520b5d7a5e40 (patch) | |
| tree | 76323c19e644b13a1f97893bd40fc99020114350 /soh/src/code | |
| parent | 17c6a3653c98369435f281b6047b8a099b67a7ac (diff) | |
use forest enum values instead of magic numbers (#2038)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_sram.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/soh/src/code/z_sram.c b/soh/src/code/z_sram.c index e3f080e67..5fb913083 100644 --- a/soh/src/code/z_sram.c +++ b/soh/src/code/z_sram.c @@ -372,14 +372,14 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) { int openForest = Randomizer_GetSettingValue(RSK_FOREST); switch (openForest) { - case 0: // closed + case RO_FOREST_CLOSED: break; - case 1: // open + case RO_FOREST_CLOSED_DEKU: Flags_SetEventChkInf(7); - gSaveContext.eventChkInf[0] |= 0x10; break; - case 2: // closed deku + case RO_FOREST_OPEN: Flags_SetEventChkInf(7); + gSaveContext.eventChkInf[0] |= 0x10; break; } |
