Skip to content

Commit 282521f

Browse files
aMannusbriaguya0
authored andcommitted
Fix Rando Water Temple Softlock (#665)
We use 3DS logic to generate item placement, but didn't have this specific door in Water Temple unlocked from the beginning like 3DS does. This meant that if people took specific paths through the temple, they could softlock themselves by missing a key.
1 parent b843caa commit 282521f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

soh/src/code/z_sram.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,11 @@ void Sram_InitSave(FileChooseContext* fileChooseCtx) {
826826
// Go away ruto (water temple first cutscene)
827827
gSaveContext.sceneFlags[05].swch |= (1 << 0x10);
828828

829+
// Opens locked Water Temple door to prevent softlocks
830+
// West door on the middle level that leads to the water raising thing
831+
// Happens in 3DS rando and N64 rando as well
832+
gSaveContext.sceneFlags[05].swch |= (1 << 0x15);
833+
829834
// Skip intro cutscene when bombing mud wall in Dodongo's cavern
830835
// this also makes the lower jaw render, and the eyes react to explosives
831836
Flags_SetEventChkInf(0xB0);

0 commit comments

Comments
 (0)