about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-04-22 11:01:57 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-04-22 11:01:57 -0400
commit7bb8b0a1dde05c7124051f0862053041bc8d0f17 (patch)
tree314fc0e17780b85cd60bd573ac4a5b3f318ceb76 /src
parent22435b61c1633e4d7a4d47bd1a3f3f621d214b2f (diff)
downloadlingo-ap-tracker-7bb8b0a1dde05c7124051f0862053041bc8d0f17.tar.gz
lingo-ap-tracker-7bb8b0a1dde05c7124051f0862053041bc8d0f17.tar.bz2
lingo-ap-tracker-7bb8b0a1dde05c7124051f0862053041bc8d0f17.zip
More backwards compatibility with 0.4.5 v0.9.0
Diffstat (limited to 'src')
-rw-r--r--src/ap_state.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ap_state.cpp b/src/ap_state.cpp index aeed914..8feb78b 100644 --- a/src/ap_state.cpp +++ b/src/ap_state.cpp
@@ -241,8 +241,11 @@ struct APState {
241 pilgrimage_allows_paintings = 241 pilgrimage_allows_paintings =
242 slot_data.contains("pilgrimage_allows_paintings") && 242 slot_data.contains("pilgrimage_allows_paintings") &&
243 slot_data["pilgrimage_allows_paintings"].get<int>() == 1; 243 slot_data["pilgrimage_allows_paintings"].get<int>() == 1;
244 sunwarp_access = slot_data["sunwarp_access"].get<SunwarpAccess>(); 244 sunwarp_access = slot_data.contains("sunwarp_access")
245 sunwarp_shuffle = slot_data["shuffle_sunwarps"].get<int>() == 1; 245 ? slot_data["sunwarp_access"].get<SunwarpAccess>()
246 : kSUNWARP_ACCESS_NORMAL;
247 sunwarp_shuffle = slot_data.contains("shuffle_sunwarps") &&
248 slot_data["shuffle_sunwarps"].get<int>() == 1;
246 249
247 if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) { 250 if (painting_shuffle && slot_data.contains("painting_entrance_to_exit")) {
248 painting_mapping.clear(); 251 painting_mapping.clear();
@@ -380,7 +383,7 @@ struct APState {
380 } else { 383 } else {
381 data_storage.erase(key); 384 data_storage.erase(key);
382 } 385 }
383 386
384 TrackerLog("Data storage " + key + " retrieved as null"); 387 TrackerLog("Data storage " + key + " retrieved as null");
385 } 388 }
386 } 389 }