* Remove all servers that have not recently been updated. * Call this after you received all the servers from the Game Coordinator, so * the ones that are no longer listed are removed. */
| 66 | * the ones that are no longer listed are removed. |
| 67 | */ |
| 68 | void NetworkGameListRemoveExpired() |
| 69 | { |
| 70 | auto it = std::remove_if(std::begin(_network_game_list), std::end(_network_game_list), [](const auto &item) { return !item->manually && item->version < _network_game_list_version; }); |
| 71 | _network_game_list.erase(it, std::end(_network_game_list)); |
| 72 | |
| 73 | UpdateNetworkGameWindow(); |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Rebuild the GRFConfig's of the servers in the game list as we did |
no test coverage detected