about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-24 11:33:21 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-24 11:33:21 -0400
commit83748ed7381253f646148291027b43b4cd28948a (patch)
treee6deab8c66c8ed69af51644b8ba968ddf495af57
parentab5206255603f6401d9c216ffce26607da16ad33 (diff)
downloadlingo-ap-tracker-83748ed7381253f646148291027b43b4cd28948a.tar.gz
lingo-ap-tracker-83748ed7381253f646148291027b43b4cd28948a.tar.bz2
lingo-ap-tracker-83748ed7381253f646148291027b43b4cd28948a.zip
Panel icon should be red for unreachable checked paintings
-rw-r--r--src/tracker_panel.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 2e1497b..42c3132 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp
@@ -223,9 +223,8 @@ void TrackerPanel::Redraw() {
223 if (AP_IsPaintingShuffle() && !panels_mode_) { 223 if (AP_IsPaintingShuffle() && !panels_mode_) {
224 for (int painting_id : map_area.paintings) { 224 for (int painting_id : map_area.paintings) {
225 const PaintingExit &painting = GD_GetPaintingExit(painting_id); 225 const PaintingExit &painting = GD_GetPaintingExit(painting_id);
226 if (!AP_IsPaintingChecked(painting.internal_id)) { 226 bool reachable = IsPaintingReachable(painting_id);
227 bool reachable = IsPaintingReachable(painting_id); 227 if (!reachable || !AP_IsPaintingChecked(painting.internal_id)) {
228
229 if (reachable) { 228 if (reachable) {
230 has_reachable_unchecked = true; 229 has_reachable_unchecked = true;
231 } else { 230 } else {