mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 15:41:15 +00:00
(svn r13776) -Fix: some revision checking code was unintentionally disabled.
This commit is contained in:
parent
317868261a
commit
14a747e490
@ -644,14 +644,12 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_JOIN)
|
|||||||
|
|
||||||
p->Recv_string(client_revision, sizeof(client_revision));
|
p->Recv_string(client_revision, sizeof(client_revision));
|
||||||
|
|
||||||
#if defined(WITH_REV) || defined(WITH_REV_HACK)
|
|
||||||
// Check if the client has revision control enabled
|
// Check if the client has revision control enabled
|
||||||
if (!IsNetworkCompatibleVersion(client_revision)) {
|
if (!IsNetworkCompatibleVersion(client_revision)) {
|
||||||
// Different revisions!!
|
// Different revisions!!
|
||||||
SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_WRONG_REVISION);
|
SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_WRONG_REVISION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
p->Recv_string(name, sizeof(name));
|
p->Recv_string(name, sizeof(name));
|
||||||
playas = (Owner)p->Recv_uint8();
|
playas = (Owner)p->Recv_uint8();
|
||||||
|
Loading…
Reference in New Issue
Block a user