summaryrefslogtreecommitdiff
path: root/src/network
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
commitdb915888459efb46775299c84e0a78ffa23e6076 (patch)
treec43d134ecdffb49cfa20069d19250e6a2d89b769 /src/network
parenta1b7fb8909cae096e6b3277ee2c0fb35f3b5e81d (diff)
downloadopenttd-db915888459efb46775299c84e0a78ffa23e6076.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')
-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);
}