summaryrefslogtreecommitdiff
path: root/src/network/network_udp.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-04 12:03:10 +0000
committerrubidium <rubidium@openttd.org>2007-04-04 12:03:10 +0000
commit1c1a4bc872b1bbc18a9ebe468f30d8dade922f74 (patch)
treec43d134ecdffb49cfa20069d19250e6a2d89b769 /src/network/network_udp.cpp
parent45b0c8042fa51c9cedfd6cda51187711382ae6d6 (diff)
downloadopenttd-1c1a4bc872b1bbc18a9ebe468f30d8dade922f74.tar.xz
(svn r9560) -Codechange: add support for multiple 'base' directories for newgrf searching.
-Codechange: do not add duplicate files to the newgrf list.
Diffstat (limited to 'src/network/network_udp.cpp')
-rw-r--r--src/network/network_udp.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp
index 063a1aef2..4031f2f6e 100644
--- a/src/network/network_udp.cpp
+++ b/src/network/network_udp.cpp
@@ -391,12 +391,13 @@ void ClientNetworkUDPSocketHandler::HandleIncomingNetworkGameInfoGRFConfig(GRFCo
/* Don't know the GRF, so mark game incompatible and the (possibly)
* already resolved name for this GRF (another server has sent the
* name of the GRF already */
- config->name = FindUnknownGRFName(config->grfid, config->md5sum, true);
- config->status = GCS_NOT_FOUND;
+ config->name = FindUnknownGRFName(config->grfid, config->md5sum, true);
+ config->status = GCS_NOT_FOUND;
} else {
- config->filename = f->filename;
- config->name = f->name;
- config->info = f->info;
+ config->filename = f->filename;
+ config->full_path = f->full_path;
+ config->name = f->name;
+ config->info = f->info;
}
SETBIT(config->flags, GCF_COPY);
}