From 4adfe42a300a597cf8e7036cd189d197b08a7f01 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 17 Nov 2023 11:43:13 -0500 Subject: Show hunt panels option --- src/tracker_panel.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/tracker_panel.cpp') 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() { bool has_reachable_unchecked = false; bool has_unreachable_unchecked = false; for (const Location §ion : map_area.locations) { - if (AP_IsLocationVisible(section.classification) && - !AP_HasCheckedGameLocation(section.ap_location_id)) { + bool has_unchecked = false; + if (AP_IsLocationVisible(section.classification)) { + has_unchecked = !AP_HasCheckedGameLocation(section.ap_location_id); + } else if (section.hunt && GetTrackerConfig().show_hunt_panels) { + has_unchecked = !AP_HasCheckedHuntPanel(section.ap_location_id); + } + + if (has_unchecked) { if (IsLocationReachable(section.ap_location_id)) { has_reachable_unchecked = true; } else { -- cgit 1.4.1