about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-25 14:09:38 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-25 14:09:38 -0500
commit7fc0e0f50ae961efbe0cac1032b03a42d41d87d5 (patch)
tree2313f5cc1a54662cfeb3a5a0630515d613a01ef6
parent7b6221d839ecef80c82e225d036eedf019e0c622 (diff)
downloadlingo-ap-tracker-7fc0e0f50ae961efbe0cac1032b03a42d41d87d5.tar.gz
lingo-ap-tracker-7fc0e0f50ae961efbe0cac1032b03a42d41d87d5.tar.bz2
lingo-ap-tracker-7fc0e0f50ae961efbe0cac1032b03a42d41d87d5.zip
Handle LEVEL 2 panel hunt being enabled globally now
-rw-r--r--src/tracker_state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tracker_state.cpp b/src/tracker_state.cpp index 002f447..e02ee14 100644 --- a/src/tracker_state.cpp +++ b/src/tracker_state.cpp
@@ -86,7 +86,8 @@ Decision IsPanelReachable_Helper(int panel_id,
86 : kMaybe; 86 : kMaybe;
87 } 87 }
88 88
89 if (panel_obj.name == "ANOTHER TRY" && AP_GetVictoryCondition() == kLEVEL_2) { 89 if ((panel_obj.name == "ANOTHER TRY" || panel_obj.name == "LEVEL 2") &&
90 AP_GetLevel2Requirement() > 1) {
90 int counting_panels_accessible = 0; 91 int counting_panels_accessible = 0;
91 92
92 for (int solved_panel_id : solveable_panels) { 93 for (int solved_panel_id : solveable_panels) {