about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-24 14:23:08 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-24 14:23:08 -0400
commitc3106d027414ca73a106df6894bb6a30b3a296ce (patch)
tree9e07d818c6102bb9df522d3c1359423b9acf6177 /src
parente7503333e1a71fab0c97315ae0a8ac1388f10d14 (diff)
downloadlingo-ap-tracker-c3106d027414ca73a106df6894bb6a30b3a296ce.tar.gz
lingo-ap-tracker-c3106d027414ca73a106df6894bb6a30b3a296ce.tar.bz2
lingo-ap-tracker-c3106d027414ca73a106df6894bb6a30b3a296ce.zip
Fixed subway squares for shuffled sunwarps showing unshuffled access
Diffstat (limited to 'src')
-rw-r--r--src/subway_map.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/subway_map.cpp b/src/subway_map.cpp index e7ac317..5b3ff5f 100644 --- a/src/subway_map.cpp +++ b/src/subway_map.cpp
@@ -563,6 +563,7 @@ void SubwayMap::Redraw() {
563 ItemDrawType draw_type = ItemDrawType::kNone; 563 ItemDrawType draw_type = ItemDrawType::kNone;
564 const wxBrush *brush_color = wxGREY_BRUSH; 564 const wxBrush *brush_color = wxGREY_BRUSH;
565 std::optional<wxColour> shade_color; 565 std::optional<wxColour> shade_color;
566 std::optional<int> subway_door = GetRealSubwayDoor(subway_item);
566 567
567 if (AP_HasEarlyColorHallways() && 568 if (AP_HasEarlyColorHallways() &&
568 subway_item.special == "starting_room_paintings") { 569 subway_item.special == "starting_room_paintings") {
@@ -624,10 +625,10 @@ void SubwayMap::Redraw() {
624 } else if (!subway_item.tags.empty()) { 625 } else if (!subway_item.tags.empty()) {
625 draw_type = ItemDrawType::kOwl; 626 draw_type = ItemDrawType::kOwl;
626 } 627 }
627 } else if (subway_item.door) { 628 } else if (subway_door) {
628 draw_type = ItemDrawType::kBox; 629 draw_type = ItemDrawType::kBox;
629 630
630 if (IsDoorOpen(*subway_item.door)) { 631 if (IsDoorOpen(*subway_door)) {
631 brush_color = wxGREEN_BRUSH; 632 brush_color = wxGREEN_BRUSH;
632 } else { 633 } else {
633 brush_color = wxRED_BRUSH; 634 brush_color = wxRED_BRUSH;