diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/subway_map.cpp | 5 |
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; |
