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
commit3e9cc1a6519a047d558115032c6b4dfcd707f105 (patch)
treeebdcf69054797bb9fc5617433a69657bed21ed6f /src/network/network_server.cpp
parent51d2dfa05d25d6dc7ba63a6501807562eacb47fc (diff)
downloadopenttd-3e9cc1a6519a047d558115032c6b4dfcd707f105.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;