mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +00:00
(svn r10414) -Fix: the network protocol check for required newgrfs sent static newgrfs too.
This commit is contained in:
parent
bb3eb6eed4
commit
f7151d44b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user