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-09-17 12:42:46 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-09-17 12:42:46 -0400
commit8e89e198830a0908ddd8f4c91cbc2bff08b0b32c (patch)
tree67d5135dd589cda0be6ad206dec8534b32a88bc3 /src/tracker_panel.cpp
parent28c8c9c06981503ed86a0292c63c75b1b6784191 (diff)
downloadlingo-ap-tracker-8e89e198830a0908ddd8f4c91cbc2bff08b0b32c.tar.gz
lingo-ap-tracker-8e89e198830a0908ddd8f4c91cbc2bff08b0b32c.tar.bz2
lingo-ap-tracker-8e89e198830a0908ddd8f4c91cbc2bff08b0b32c.zip
Use hardcoded AP ids now
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r--src/tracker_panel.cpp10
1 files changed, 4 insertions, 6 deletions
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() {
104 104
105 bool has_reachable_unchecked = false; 105 bool has_reachable_unchecked = false;
106 bool has_unreachable_unchecked = false; 106 bool has_unreachable_unchecked = false;
107 for (int section_id = 0; section_id < map_area.locations.size(); 107 for (const Location &section : map_area.locations) {
108 section_id++) { 108 if (AP_IsLocationVisible(section.classification) &&
109 if (AP_IsLocationVisible( 109 !AP_HasCheckedGameLocation(section.ap_location_id)) {
110 map_area.locations.at(section_id).classification) && 110 if (IsLocationReachable(section.ap_location_id)) {
111 !AP_HasCheckedGameLocation(area.area_id, section_id)) {
112 if (IsLocationReachable(area.area_id, section_id)) {
113 has_reachable_unchecked = true; 111 has_reachable_unchecked = true;
114 } else { 112 } else {
115 has_unreachable_unchecked = true; 113 has_unreachable_unchecked = true;