summaryrefslogtreecommitdiff
path: root/src/network/network_server.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-01 00:58:09 +0000
committerrubidium <rubidium@openttd.org>2007-03-01 00:58:09 +0000
commit66487d59fd5fdeb253361865cb4322347b0b18fb (patch)
treeebdcf69054797bb9fc5617433a69657bed21ed6f /src/network/network_server.cpp
parent3dc71e3484564a5a6546749ecf61d63d0de65879 (diff)
downloadopenttd-66487d59fd5fdeb253361865cb4322347b0b18fb.tar.xz
(svn r8949) -Codechange: only test the first NETWORK_REVISION_LENGTH - 1 characters when determining network compatability. This makes it possible to have 'long' branch names while still being able to play network games.
Diffstat (limited to 'src/network/network_server.cpp')
-rw-r--r--src/network/network_server.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index f4653d2df..ce9b9f881 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -621,8 +621,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_JOIN)
#if defined(WITH_REV) || defined(WITH_REV_HACK)
// Check if the client has revision control enabled
- if (strcmp(NOREV_STRING, client_revision) != 0 &&
- strcmp(_network_game_info.server_revision, client_revision) != 0) {
+ if (!IsNetworkCompatibleVersion(client_revision)) {
// Different revisions!!
SEND_COMMAND(PACKET_SERVER_ERROR)(cs, NETWORK_ERROR_WRONG_REVISION);
return;