From e290161d58c98e73ea185855e79efad19cb111a2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 8 Mar 2025 00:29:17 -0500 Subject: Added postgame detection --- src/tracker_panel.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/tracker_panel.cpp') diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 81b58cc..b4e6697 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp @@ -203,7 +203,9 @@ void TrackerPanel::Redraw() { for (AreaIndicator &area : areas_) { const MapArea &map_area = GD_GetMapArea(area.area_id); - if (panels_mode_) { + if (IsAreaPostgame(area.area_id)) { + area.active = false; + } else if (panels_mode_) { area.active = map_area.has_single_panel; } else if (!AP_IsLocationVisible(map_area.classification) && !(map_area.hunt && GetTrackerConfig().show_hunt_panels) && @@ -221,7 +223,9 @@ void TrackerPanel::Redraw() { bool has_unreachable_unchecked = false; for (const Location §ion : map_area.locations) { bool has_unchecked = false; - if (IsLocationWinCondition(section)) { + if (IsLocationPostgame(section.ap_location_id)) { + // Nope. + } else if (IsLocationWinCondition(section)) { has_unchecked = !AP_HasReachedGoal(); } else if (panels_mode_) { if (section.single_panel) { @@ -249,6 +253,10 @@ void TrackerPanel::Redraw() { if (AP_IsPaintingShuffle() && !panels_mode_) { for (int painting_id : map_area.paintings) { + if (IsPaintingPostgame(painting_id)) { + continue; + } + const PaintingExit &painting = GD_GetPaintingExit(painting_id); bool reachable = IsPaintingReachable(painting_id); if (!reachable || !AP_IsPaintingChecked(painting.internal_id)) { -- cgit 1.4.1