(svn r10414) -Fix: the network protocol check for required newgrfs sent static newgrfs too.
authorrubidium
Tue, 03 Jul 2007 16:14:29 +0000
changeset 7636 d04531c9f0a4
parent 7635 cb9fdc0601cf
child 7637 886fbeac6c75
(svn r10414) -Fix: the network protocol check for required newgrfs sent static newgrfs too.
src/network/network_server.cpp
--- a/src/network/network_server.cpp	Tue Jul 03 15:24:50 2007 +0000
+++ b/src/network/network_server.cpp	Tue Jul 03 16:14:29 2007 +0000
@@ -196,11 +196,13 @@
 	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);