diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-29 12:56:29 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-29 12:56:29 -0400 |
commit | 13d2a129f6972e6e752da9c9cb686a63d5550517 (patch) | |
tree | ea0cfe2197c25732dd0d4d0f0e37717fd977792f /src/tracker_panel.cpp | |
parent | d3e2d9518403eb89eb150fa2158966c3483d5339 (diff) | |
download | lingo-ap-tracker-13d2a129f6972e6e752da9c9cb686a63d5550517.tar.gz lingo-ap-tracker-13d2a129f6972e6e752da9c9cb686a63d5550517.tar.bz2 lingo-ap-tracker-13d2a129f6972e6e752da9c9cb686a63d5550517.zip |
Show unchecked paintings
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r-- | src/tracker_panel.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 66bce81..0385f89 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp | |||
@@ -171,6 +171,20 @@ void TrackerPanel::Redraw() { | |||
171 | } | 171 | } |
172 | } | 172 | } |
173 | 173 | ||
174 | if (AP_IsPaintingShuffle()) { | ||
175 | for (const PaintingExit &painting : map_area.paintings) { | ||
176 | if (!AP_IsPaintingChecked(painting.id)) { | ||
177 | bool reachable = painting.door ? IsDoorOpen(*painting.door) : true; | ||
178 | |||
179 | if (reachable) { | ||
180 | has_reachable_unchecked = true; | ||
181 | } else { | ||
182 | has_unreachable_unchecked = true; | ||
183 | } | ||
184 | } | ||
185 | } | ||
186 | } | ||
187 | |||
174 | int real_area_x = final_x + (map_area.map_x - (AREA_EFFECTIVE_SIZE / 2)) * | 188 | int real_area_x = final_x + (map_area.map_x - (AREA_EFFECTIVE_SIZE / 2)) * |
175 | final_width / image_size.GetWidth(); | 189 | final_width / image_size.GetWidth(); |
176 | int real_area_y = final_y + (map_area.map_y - (AREA_EFFECTIVE_SIZE / 2)) * | 190 | int real_area_y = final_y + (map_area.map_y - (AREA_EFFECTIVE_SIZE / 2)) * |