diff options
author | frosch <frosch@openttd.org> | 2010-10-17 12:12:13 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-10-17 12:12:13 +0000 |
commit | 3972c790c2cba8c4c01ac6536e8675808f6e1c4d (patch) | |
tree | 09e55bb7f156c3cd331ee37683595583d88a2625 /src/network/network_udp.cpp | |
parent | 918da8432ae709e002448c947550674e1f4ae278 (diff) | |
download | openttd-3972c790c2cba8c4c01ac6536e8675808f6e1c4d.tar.xz |
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
Diffstat (limited to 'src/network/network_udp.cpp')
-rw-r--r-- | src/network/network_udp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp index dadf0525f..eb4fa4c3c 100644 --- a/src/network/network_udp.cpp +++ b/src/network/network_udp.cpp @@ -182,7 +182,7 @@ DEF_UDP_RECEIVE_COMMAND(Server, PACKET_UDP_CLIENT_GET_NEWGRFS) this->Recv_GRFIdentifier(p, &c); /* Find the matching GRF file */ - f = FindGRFConfig(c.grfid, c.md5sum); + f = FindGRFConfig(c.grfid, FGCM_EXACT, c.md5sum); if (f == NULL) continue; // The GRF is unknown to this server /* If the reply might exceed the size of the packet, only reply @@ -362,7 +362,7 @@ DEF_UDP_RECEIVE_COMMAND(Client, PACKET_UDP_SERVER_NEWGRFS) void ClientNetworkUDPSocketHandler::HandleIncomingNetworkGameInfoGRFConfig(GRFConfig *config) { /* Find the matching GRF file */ - const GRFConfig *f = FindGRFConfig(config->ident.grfid, config->ident.md5sum); + const GRFConfig *f = FindGRFConfig(config->ident.grfid, FGCM_EXACT, config->ident.md5sum); if (f == NULL) { /* Don't know the GRF, so mark game incompatible and the (possibly) * already resolved name for this GRF (another server has sent the |