diff options
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r-- | src/tracker_panel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 0e0569b..736db82 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp | |||
@@ -15,7 +15,7 @@ TrackerPanel::TrackerPanel(wxWindow *parent) : wxPanel(parent, wxID_ANY) { | |||
15 | return; | 15 | return; |
16 | } | 16 | } |
17 | 17 | ||
18 | for (const MapArea &map_area : GetGameData().GetMapAreas()) { | 18 | for (const MapArea &map_area : GD_GetMapAreas()) { |
19 | AreaIndicator area; | 19 | AreaIndicator area; |
20 | area.area_id = map_area.id; | 20 | area.area_id = map_area.id; |
21 | 21 | ||
@@ -93,13 +93,13 @@ void TrackerPanel::Redraw() { | |||
93 | for (AreaIndicator &area : areas_) { | 93 | for (AreaIndicator &area : areas_) { |
94 | const wxBrush *brush_color = wxGREY_BRUSH; | 94 | const wxBrush *brush_color = wxGREY_BRUSH; |
95 | 95 | ||
96 | const MapArea &map_area = GetGameData().GetMapArea(area.area_id); | 96 | const MapArea &map_area = GD_GetMapArea(area.area_id); |
97 | bool has_reachable_unchecked = false; | 97 | bool has_reachable_unchecked = false; |
98 | bool has_unreachable_unchecked = false; | 98 | bool has_unreachable_unchecked = false; |
99 | for (int section_id = 0; section_id < map_area.locations.size(); | 99 | for (int section_id = 0; section_id < map_area.locations.size(); |
100 | section_id++) { | 100 | section_id++) { |
101 | if (!AP_HasCheckedGameLocation(area.area_id, section_id)) { | 101 | if (!AP_HasCheckedGameLocation(area.area_id, section_id)) { |
102 | if (GetTrackerState().IsLocationReachable(area.area_id, section_id)) { | 102 | if (IsLocationReachable(area.area_id, section_id)) { |
103 | has_reachable_unchecked = true; | 103 | has_reachable_unchecked = true; |
104 | } else { | 104 | } else { |
105 | has_unreachable_unchecked = true; | 105 | has_unreachable_unchecked = true; |