From 3c49081df34fb1801063c0b538d12d4422fcf3f0 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 20 Dec 2024 14:33:43 -0500 Subject: Fixed remaining thread unsafe APState/IPCState reads Still would like to add some kind of wrapper object that TrackerState could use to read APState without locking, since it'll only ever be called from the thread that would do the mutating, but this is fine for now. --- src/subway_map.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/subway_map.h') diff --git a/src/subway_map.h b/src/subway_map.h index feee8ff..6aa31f5 100644 --- a/src/subway_map.h +++ b/src/subway_map.h @@ -15,6 +15,7 @@ #include +#include "ap_state.h" #include "game_data.h" #include "network_set.h" @@ -50,6 +51,8 @@ class SubwayMap : public wxPanel { void SetScrollSpeed(int scroll_x, int scroll_y); void SetZoom(double zoom, wxPoint static_point); + std::optional GetRealSubwayDoor(const SubwayItem subway_item); + wxImage map_image_; wxImage owl_image_; wxBitmap unchecked_eye_; @@ -87,6 +90,9 @@ class SubwayMap : public wxPanel { NetworkSet networks_; std::set checked_paintings_; + + // Cached from APState. + std::map sunwarp_mapping_; }; #endif /* end of include guard: SUBWAY_MAP_H_BD2D843E */ -- cgit 1.4.1