about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game_data.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game_data.cpp b/src/game_data.cpp index 7bc3134..8af57e5 100644 --- a/src/game_data.cpp +++ b/src/game_data.cpp
@@ -651,6 +651,20 @@ struct GameData {
651 651
652 subway_items_.push_back(subway_item); 652 subway_items_.push_back(subway_item);
653 } 653 }
654
655 // Find singleton subway tags.
656 std::map<std::string, std::set<int>> subway_tags;
657 for (const SubwayItem &subway_item : subway_items_) {
658 for (const std::string &tag : subway_item.tags) {
659 subway_tags[tag].insert(subway_item.id);
660 }
661 }
662
663 for (const auto &[tag, items] : subway_tags) {
664 if (items.size() == 1) {
665 wxLogWarning("Singleton subway item tag: %s", tag);
666 }
667 }
654 } 668 }
655 669
656 int AddOrGetRoom(std::string room) { 670 int AddOrGetRoom(std::string room) {