summaryrefslogtreecommitdiff
path: root/network_client.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 09:01:24 +0000
committertruelight <truelight@openttd.org>2004-12-13 09:01:24 +0000
commit05c585d5934dfb19b6bf7159c746019ffcf94064 (patch)
tree9c58fdb7dda39adeac5768302cd817ff1dcdb45d /network_client.c
parent1fe087ac4594be1b18cc43838b15863ad38a3966 (diff)
downloadopenttd-05c585d5934dfb19b6bf7159c746019ffcf94064.tar.xz
(svn r1042) -Fix: [Network] Hopefully enabled revision-check for windows (somehow
windows uses WITH_REV_HACK instead of WITH_REV :s)
Diffstat (limited to 'network_client.c')
-rw-r--r--network_client.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/network_client.c b/network_client.c
index a40b7d708..dc512c545 100644
--- a/network_client.c
+++ b/network_client.c
@@ -56,10 +56,15 @@ DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_JOIN)
// String: Unique id to find the player back in server-listing
//
-#if defined(WITH_REV)
- extern char _openttd_revision[];
+#ifdef WITH_REV_HACK
+ #define WITH_REV
+ const char _openttd_revision[] = WITH_REV_HACK;
#else
+ #if defined(WITH_REV)
+ extern char _openttd_revision[];
+ #else
const char _openttd_revision[] = "norev000";
+ #endif
#endif
Packet *p;
_network_join_status = NETWORK_JOIN_STATUS_AUTHORIZING;