diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 13:53:20 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-06-06 13:53:20 -0400 |
commit | 67a2efe7be6f4872adca8d944ebf403046472a98 (patch) | |
tree | 63f30a28c2c32ab03f9dfccc1c50567a0f03d3cc /src/tracker_panel.cpp | |
parent | 78ac9905e222c26758e95b098d2e3a3e74a48839 (diff) | |
download | lingo-ap-tracker-67a2efe7be6f4872adca8d944ebf403046472a98.tar.gz lingo-ap-tracker-67a2efe7be6f4872adca8d944ebf403046472a98.tar.bz2 lingo-ap-tracker-67a2efe7be6f4872adca8d944ebf403046472a98.zip |
Proper painting reachability detection
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r-- | src/tracker_panel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 0385f89..f0810c9 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp | |||
@@ -172,9 +172,10 @@ void TrackerPanel::Redraw() { | |||
172 | } | 172 | } |
173 | 173 | ||
174 | if (AP_IsPaintingShuffle()) { | 174 | if (AP_IsPaintingShuffle()) { |
175 | for (const PaintingExit &painting : map_area.paintings) { | 175 | for (int painting_id : map_area.paintings) { |
176 | if (!AP_IsPaintingChecked(painting.id)) { | 176 | const PaintingExit &painting = GD_GetPaintingExit(painting_id); |
177 | bool reachable = painting.door ? IsDoorOpen(*painting.door) : true; | 177 | if (!AP_IsPaintingChecked(painting.internal_id)) { |
178 | bool reachable = IsPaintingReachable(painting_id); | ||
178 | 179 | ||
179 | if (reachable) { | 180 | if (reachable) { |
180 | has_reachable_unchecked = true; | 181 | has_reachable_unchecked = true; |