From 8e89e198830a0908ddd8f4c91cbc2bff08b0b32c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 17 Sep 2023 12:42:46 -0400 Subject: Use hardcoded AP ids now --- src/tracker_panel.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/tracker_panel.cpp') diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 40d3ced..5580068 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp @@ -104,12 +104,10 @@ void TrackerPanel::Redraw() { bool has_reachable_unchecked = false; bool has_unreachable_unchecked = false; - for (int section_id = 0; section_id < map_area.locations.size(); - section_id++) { - if (AP_IsLocationVisible( - map_area.locations.at(section_id).classification) && - !AP_HasCheckedGameLocation(area.area_id, section_id)) { - if (IsLocationReachable(area.area_id, section_id)) { + for (const Location §ion : map_area.locations) { + if (AP_IsLocationVisible(section.classification) && + !AP_HasCheckedGameLocation(section.ap_location_id)) { + if (IsLocationReachable(section.ap_location_id)) { has_reachable_unchecked = true; } else { has_unreachable_unchecked = true; -- cgit 1.4.1