Fix save warping in links house with entrance rando (#5009)

* Fix save warping in links house with entrance rando

* account for interrior shuffle all
This commit is contained in:
Archez 2025-02-06 10:33:41 -05:00 committed by GitHub
parent 4044ab34c3
commit eafe7f0b04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -393,8 +393,11 @@ void Entrance_SetSavewarpEntrance(void) {
gSaveContext.entranceIndex = ENTR_GANONS_TOWER_0; // Inside Ganon's Castle -> Ganon's Tower Climb
} else if (scene == SCENE_THIEVES_HIDEOUT) { // Theives hideout
gSaveContext.entranceIndex = ENTR_THIEVES_HIDEOUT_0; // Gerudo Fortress -> Thieve's Hideout spawn 0
} else if (scene == SCENE_LINKS_HOUSE) {
gSaveContext.entranceIndex = Entrance_OverrideNextIndex(ENTR_LINKS_HOUSE_CHILD_SPAWN);
} else if (scene == SCENE_LINKS_HOUSE &&
Randomizer_GetSettingValue(RSK_SHUFFLE_INTERIOR_ENTRANCES) != RO_INTERIOR_ENTRANCE_SHUFFLE_ALL) {
// Save warping in Link's house keeps the player there if Link's house not shuffled,
// otherwise fallback to regular spawns
gSaveContext.entranceIndex = ENTR_LINKS_HOUSE_CHILD_SPAWN;
} else if (CVarGetInteger(CVAR_ENHANCEMENT("RememberSaveLocation"), 0) && scene != SCENE_FAIRYS_FOUNTAIN && scene != SCENE_GROTTOS &&
gSaveContext.entranceIndex != ENTR_LOAD_OPENING) {
// Use the saved entrance value with remember save location, except when in grottos/fairy fountains or if