Support sending extended game info in response to PACKET_CLIENT_GAME_INFO

This commit is contained in:
Jonathan G Rennison
2021-09-17 23:44:59 +01:00
parent 8a0821c96e
commit 7e39d3f24a
10 changed files with 70 additions and 7 deletions

View File

@@ -110,10 +110,10 @@ bool IsNetworkCompatibleVersion(const char *other, bool extended)
/**
* Check if an game entry is compatible with our client.
*/
void CheckGameCompatibility(NetworkGameInfo &ngi)
void CheckGameCompatibility(NetworkGameInfo &ngi, bool extended)
{
/* Check if we are allowed on this server based on the revision-check. */
ngi.version_compatible = IsNetworkCompatibleVersion(ngi.server_revision);
ngi.version_compatible = IsNetworkCompatibleVersion(ngi.server_revision, extended);
ngi.compatible = ngi.version_compatible;
/* Check if we have all the GRFs on the client-system too. */