diff options
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r-- | src/tracker_panel.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 736db82..90b8eb9 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp | |||
@@ -52,7 +52,8 @@ void TrackerPanel::OnPaint(wxPaintEvent &event) { | |||
52 | 52 | ||
53 | void TrackerPanel::OnMouseMove(wxMouseEvent &event) { | 53 | void TrackerPanel::OnMouseMove(wxMouseEvent &event) { |
54 | for (AreaIndicator &area : areas_) { | 54 | for (AreaIndicator &area : areas_) { |
55 | if (area.real_x1 <= event.GetX() && event.GetX() < area.real_x2 && | 55 | if (area.active && |
56 | area.real_x1 <= event.GetX() && event.GetX() < area.real_x2 && | ||
56 | area.real_y1 <= event.GetY() && event.GetY() < area.real_y2) { | 57 | area.real_y1 <= event.GetY() && event.GetY() < area.real_y2) { |
57 | area.popup->Show(); | 58 | area.popup->Show(); |
58 | } else { | 59 | } else { |
@@ -94,6 +95,13 @@ void TrackerPanel::Redraw() { | |||
94 | const wxBrush *brush_color = wxGREY_BRUSH; | 95 | const wxBrush *brush_color = wxGREY_BRUSH; |
95 | 96 | ||
96 | const MapArea &map_area = GD_GetMapArea(area.area_id); | 97 | const MapArea &map_area = GD_GetMapArea(area.area_id); |
98 | if (map_area.exclude_reduce && AP_IsReduceChecks()) { | ||
99 | area.active = false; | ||
100 | continue; | ||
101 | } else { | ||
102 | area.active = true; | ||
103 | } | ||
104 | |||
97 | bool has_reachable_unchecked = false; | 105 | bool has_reachable_unchecked = false; |
98 | bool has_unreachable_unchecked = false; | 106 | bool has_unreachable_unchecked = false; |
99 | for (int section_id = 0; section_id < map_area.locations.size(); | 107 | for (int section_id = 0; section_id < map_area.locations.size(); |