Added found locations to scouts as well

This commit is contained in:
Jerom Venneker
2025-05-12 21:39:05 +02:00
parent ae736e6f2c
commit e2d0d8f511

View File

@@ -214,12 +214,16 @@ bool ArchipelagoClient::start_client() {
}
void ArchipelagoClient::start_location_scouts() {
std::set<int64_t> location_set = apclient->get_missing_locations();
std::list<int64_t> missing_location_list;
for(const int64_t loc_id : location_set) {
missing_location_list.emplace_back(loc_id);
std::set<int64_t> missing_loc_set = apclient->get_missing_locations();
std::set<int64_t> found_loc_set = apclient->get_checked_locations();
std::list<int64_t> location_list;
for(const int64_t loc_id : missing_loc_set) {
location_list.emplace_back(loc_id);
}
apclient->LocationScouts(missing_location_list);
for(const int64_t loc_id : found_loc_set) {
location_list.emplace_back(loc_id);
}
apclient->LocationScouts(location_list);
}
void ArchipelagoClient::save_data() {