(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow

windows uses WITH_REV_HACK instead of WITH_REV :s)
This commit is contained in:
truelight
2004-12-13 09:01:24 +00:00
parent 523b37a3e9
commit c0603e4768
5 changed files with 28 additions and 8 deletions

View File

@@ -577,7 +577,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_JOIN)
NetworkRecv_string(p, client_revision, sizeof(client_revision));
// Too bad, when WITH_REV is disabled, we can not compare the version.
#if defined(WITH_REV)
#if defined(WITH_REV) || defined (WITH_REV_HACK)
// Check if the client has WITH_REV enabled
if (strncmp("norev000", client_revision, sizeof(client_revision)) != 0) {
if (strncmp(_network_game_info.server_revision, client_revision, sizeof(_network_game_info.server_revision)) != 0) {