Codechange: track version of network servers to prune once out-of-date

This commit is contained in:
Patric Stout
2021-04-29 16:30:42 +02:00
committed by Patric Stout
parent cbaac5609f
commit e1e2212e0e
5 changed files with 41 additions and 5 deletions

View File

@@ -327,6 +327,8 @@ void ClientNetworkUDPSocketHandler::Receive_SERVER_RESPONSE(Packet *p, NetworkAd
CheckGameCompatibility(item->info);
/* Ensure we consider the server online. */
item->online = true;
/* Make sure this entry never expires. */
item->version = INT32_MAX;
{
/* Checks whether there needs to be a request for names of GRFs and makes