summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-03 16:14:29 +0000
committerrubidium <rubidium@openttd.org>2007-07-03 16:14:29 +0000
commit95d2abf81d574d2897c06ca3278f3c6f4a9a8ba3 (patch)
tree9174662c2b690147ffb1e152e5fa4b9f9e433a69 /src/network
parente08965fdcb7339c82f7ca82f9e866cb1854fa32d (diff)
downloadopenttd-95d2abf81d574d2897c06ca3278f3c6f4a9a8ba3.tar.xz
(svn r10414) -Fix: the network protocol check for required newgrfs sent static newgrfs too.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_server.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index b8789edf6..ad9985572 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -196,11 +196,13 @@ DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_CHECK_NEWGRFS)(NetworkTCPSocketHandl
const GRFConfig *c;
uint grf_count = 0;
- for (c = _grfconfig; c != NULL; c = c->next) grf_count++;
+ for (c = _grfconfig; c != NULL; c = c->next) {
+ if (!HASBIT(c->flags, GCF_STATIC)) grf_count++;
+ }
p->Send_uint8 (grf_count);
for (c = _grfconfig; c != NULL; c = c->next) {
- cs->Send_GRFIdentifier(p, c);
+ if (!HASBIT(c->flags, GCF_STATIC)) cs->Send_GRFIdentifier(p, c);
}
cs->Send_Packet(p);