hide Ep3 maps that don't have enough player slots for the game

This commit is contained in:
Martin Michelsen
2023-09-08 23:12:35 -07:00
parent 9c3f764cd9
commit c430340c9d
3 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -2168,7 +2168,7 @@ void Server::handle_6xB3x40_map_list_request(const string& data) {
throw runtime_error("lobby is deleted");
}
const auto& list_data = this->base()->map_index->get_compressed_list();
const auto& list_data = this->base()->map_index->get_compressed_list(l->count_clients());
StringWriter w;
uint32_t subcommand_size = (list_data.size() + sizeof(G_MapList_GC_Ep3_6xB6x40) + 3) & (~3);