diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-06 14:09:02 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-06 14:09:02 -0500 |
commit | 6e7146714e0af2145c8c6cda3da4e2a54b469cb6 (patch) | |
tree | 01e2bbc7100629ff612f47063b2e89aee0ea216b /src/tracker_panel.cpp | |
parent | 85c02f71f81e5d5d250d4ad3f39edc5394902c99 (diff) | |
download | lingo-ap-tracker-6e7146714e0af2145c8c6cda3da4e2a54b469cb6.tar.gz lingo-ap-tracker-6e7146714e0af2145c8c6cda3da4e2a54b469cb6.tar.bz2 lingo-ap-tracker-6e7146714e0af2145c8c6cda3da4e2a54b469cb6.zip |
Added setting for disabling player position tracking
Diffstat (limited to 'src/tracker_panel.cpp')
-rw-r--r-- | src/tracker_panel.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tracker_panel.cpp b/src/tracker_panel.cpp index 04b970c..3f51cd5 100644 --- a/src/tracker_panel.cpp +++ b/src/tracker_panel.cpp | |||
@@ -103,10 +103,13 @@ void TrackerPanel::OnPaint(wxPaintEvent &event) { | |||
103 | dc.DrawBitmap(rendered_, 0, 0); | 103 | dc.DrawBitmap(rendered_, 0, 0); |
104 | 104 | ||
105 | std::optional<std::tuple<int, int>> player_position; | 105 | std::optional<std::tuple<int, int>> player_position; |
106 | if (IPC_IsConnected()) { | 106 | if (GetTrackerConfig().track_position) |
107 | player_position = IPC_GetPlayerPosition(); | 107 | { |
108 | } else { | 108 | if (IPC_IsConnected()) { |
109 | player_position = AP_GetPlayerPosition(); | 109 | player_position = IPC_GetPlayerPosition(); |
110 | } else { | ||
111 | player_position = AP_GetPlayerPosition(); | ||
112 | } | ||
110 | } | 113 | } |
111 | 114 | ||
112 | if (player_position.has_value()) { | 115 | if (player_position.has_value()) { |