about summary refs log tree commit diff stats
path: root/src/game_data.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-08 00:29:17 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-08 00:29:17 -0500
commite290161d58c98e73ea185855e79efad19cb111a2 (patch)
treea03d0e3822b19a1c57dd83d1309ab32814d670fe /src/game_data.cpp
parent4fa8f5b6c933dcbab5940d39a515937e86e9d280 (diff)
downloadlingo-ap-tracker-e290161d58c98e73ea185855e79efad19cb111a2.tar.gz
lingo-ap-tracker-e290161d58c98e73ea185855e79efad19cb111a2.tar.bz2
lingo-ap-tracker-e290161d58c98e73ea185855e79efad19cb111a2.zip
Added postgame detection
Diffstat (limited to 'src/game_data.cpp')
-rw-r--r--src/game_data.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index e92e6a2..5fbd244 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -609,7 +609,7 @@ struct GameData {
609 // Only locations for the panels are kept here. 609 // Only locations for the panels are kept here.
610 std::map<std::string, std::tuple<int, int>> locations_by_name; 610 std::map<std::string, std::tuple<int, int>> locations_by_name;
611 611
612 for (const Panel &panel : panels_) { 612 for (Panel &panel : panels_) {
613 int room_id = panel.room; 613 int room_id = panel.room;
614 std::string room_name = rooms_[room_id].name; 614 std::string room_name = rooms_[room_id].name;
615 615
@@ -625,6 +625,8 @@ struct GameData {
625 area_name = location_name.substr(0, divider_pos); 625 area_name = location_name.substr(0, divider_pos);
626 section_name = location_name.substr(divider_pos + 3); 626 section_name = location_name.substr(divider_pos + 3);
627 } 627 }
628 } else {
629 panel.location_name = location_name;
628 } 630 }
629 631
630 if (fold_areas.count(area_name)) { 632 if (fold_areas.count(area_name)) {