about summary refs log tree commit diff stats
path: root/src/tracker_panel.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-17 11:43:13 -0500
commit4adfe42a300a597cf8e7036cd189d197b08a7f01 (patch)
tree684a9f825bc1ae919ea68049a941f6190b8b4f96 /src/tracker_panel.cpp
parenta9bc708c7eeeada4c59952ce71aa071175f8f27d (diff)
downloadlingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.gz
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.tar.bz2
lingo-ap-tracker-4adfe42a300a597cf8e7036cd189d197b08a7f01.zip
Show hunt panels option
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r--src/tracker_panel.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 466440f..f6fed25 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp
@@ -114,8 +114,14 @@ void TrackerPanel::Redraw() {
114 bool has_reachable_unchecked = false; 114 bool has_reachable_unchecked = false;
115 bool has_unreachable_unchecked = false; 115 bool has_unreachable_unchecked = false;
116 for (const Location &section : map_area.locations) { 116 for (const Location &section : map_area.locations) {
117 if (AP_IsLocationVisible(section.classification) && 117 bool has_unchecked = false;
118 !AP_HasCheckedGameLocation(section.ap_location_id)) { 118 if (AP_IsLocationVisible(section.classification)) {
119 has_unchecked = !AP_HasCheckedGameLocation(section.ap_location_id);
120 } else if (section.hunt && GetTrackerConfig().show_hunt_panels) {
121 has_unchecked = !AP_HasCheckedHuntPanel(section.ap_location_id);
122 }
123
124 if (has_unchecked) {
119 if (IsLocationReachable(section.ap_location_id)) { 125 if (IsLocationReachable(section.ap_location_id)) {
120 has_reachable_unchecked = true; 126 has_reachable_unchecked = true;
121 } else { 127 } else {