From 2b978dbdade40124667ff139140abb5006f0ad1a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 17 Feb 2008 03:12:25 +0000 Subject: Add command line option for server to allow client version checking to be disabled. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1086 --- src/net_server.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net_server.c b/src/net_server.c index 287bf113..23612980 100644 --- a/src/net_server.c +++ b/src/net_server.c @@ -478,8 +478,22 @@ static void NET_SV_ParseSYN(net_packet_t *packet, if (strcmp(client_version, PACKAGE_STRING) != 0) { - NET_SV_SendReject(addr, "Different versions cannot play a network game!"); - return; + //! + // @category net + // + // When running a netgame server, ignore version mismatches between + // the server and the client. Using this option may cause game + // desyncs to occur, or differences in protocol may mean the netgame + // will simply not function at all. + // + + if (M_CheckParm("-ignoreversion") == 0) + { + NET_SV_SendReject(addr, + "Version mismatch: server version is: " + PACKAGE_STRING); + return; + } } // read the game mode and mission -- cgit v1.2.3