about summary refs log tree commit diff stats
path: root/src/tracker_panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r--src/tracker_panel.cpp23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 0a756e6..ddb4df9 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp
@@ -55,15 +55,13 @@ void TrackerPanel::UpdateIndicators(bool reset) {
55 for (AreaIndicator &area : areas_) { 55 for (AreaIndicator &area : areas_) {
56 const MapArea &map_area = GD_GetMapArea(area.area_id); 56 const MapArea &map_area = GD_GetMapArea(area.area_id);
57 57
58 if (IsAreaPostgame(area.area_id)) { 58 if ((!AP_IsLocationVisible(map_area.classification) ||
59 area.active = false; 59 IsAreaPostgame(area.area_id)) &&
60 } else if (!AP_IsLocationVisible(map_area.classification) && 60 !(map_area.hunt &&
61 !(map_area.hunt && GetTrackerConfig().visible_panels == 61 GetTrackerConfig().visible_panels == TrackerConfig::kHUNT_PANELS) &&
62 TrackerConfig::kHUNT_PANELS) && 62 !(map_area.has_single_panel &&
63 !(map_area.has_single_panel && 63 GetTrackerConfig().visible_panels == TrackerConfig::kALL_PANELS) &&
64 GetTrackerConfig().visible_panels == 64 !(AP_IsPaintingShuffle() && !map_area.paintings.empty())) {
65 TrackerConfig::kALL_PANELS) &&
66 !(AP_IsPaintingShuffle() && !map_area.paintings.empty())) {
67 area.active = false; 65 area.active = false;
68 } else { 66 } else {
69 area.active = true; 67 area.active = true;
@@ -233,11 +231,10 @@ void TrackerPanel::Redraw() {
233 bool has_unreachable_unchecked = false; 231 bool has_unreachable_unchecked = false;
234 for (const Location &section : map_area.locations) { 232 for (const Location &section : map_area.locations) {
235 bool has_unchecked = false; 233 bool has_unchecked = false;
236 if (IsLocationPostgame(section.ap_location_id)) { 234 if (IsLocationWinCondition(section)) {
237 // Nope.
238 } else if (IsLocationWinCondition(section)) {
239 has_unchecked = !AP_HasReachedGoal(); 235 has_unchecked = !AP_HasReachedGoal();
240 } else if (AP_IsLocationVisible(section.classification)) { 236 } else if (AP_IsLocationVisible(section.classification) &&
237 !IsLocationPostgame(section.ap_location_id)) {
241 has_unchecked = !AP_HasCheckedGameLocation(section.ap_location_id); 238 has_unchecked = !AP_HasCheckedGameLocation(section.ap_location_id);
242 } else if ((section.hunt && GetTrackerConfig().visible_panels == 239 } else if ((section.hunt && GetTrackerConfig().visible_panels ==
243 TrackerConfig::kHUNT_PANELS) || 240 TrackerConfig::kHUNT_PANELS) ||