summaryrefslogtreecommitdiff
path: root/src/network/network_udp.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-10-17 12:12:13 +0000
committerfrosch <frosch@openttd.org>2010-10-17 12:12:13 +0000
commit3972c790c2cba8c4c01ac6536e8675808f6e1c4d (patch)
tree09e55bb7f156c3cd331ee37683595583d88a2625 /src/network/network_udp.cpp
parent918da8432ae709e002448c947550674e1f4ae278 (diff)
downloadopenttd-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.cpp4
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