about summary refs log tree commit diff stats
path: root/src/tracker_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracker_state.cpp')
-rw-r--r--src/tracker_state.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tracker_state.cpp b/src/tracker_state.cpp index fd5ff4b..da8f426 100644 --- a/src/tracker_state.cpp +++ b/src/tracker_state.cpp
@@ -288,7 +288,17 @@ class StateCalculator {
288 } 288 }
289 289
290 if (AP_IsPilgrimageEnabled()) { 290 if (AP_IsPilgrimageEnabled()) {
291 if (room_obj.name == "Hub Room") { 291 int pilgrimage_start_id = GD_GetRoomByName("Hub Room");
292 if (AP_IsSunwarpShuffle()) {
293 for (const auto& [start_index, mapping] :
294 AP_GetSunwarpMapping()) {
295 if (mapping.dots == 1) {
296 pilgrimage_start_id = GD_GetRoomForSunwarp(start_index);
297 }
298 }
299 }
300
301 if (room_exit.destination_room == pilgrimage_start_id) {
292 new_boundary.push_back( 302 new_boundary.push_back(
293 {.destination_room = GD_GetRoomByName("Pilgrim Antechamber"), 303 {.destination_room = GD_GetRoomByName("Pilgrim Antechamber"),
294 .type = EntranceType::kPilgrimage}); 304 .type = EntranceType::kPilgrimage});