This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
Révision | 10af1739daa34a45cb0817adfdef4106b20c0634 (tree) |
---|---|
l'heure | 2019-10-14 04:38:53 |
Auteur | Benjamin Berkels <torr.samaho@quan...> |
Commiter | Benjamin Berkels |
- changed the version string to 3.0.1
- kept network compatibility with 3.0
@@ -818,7 +818,9 @@ | ||
818 | 818 | |
819 | 819 | // Send connection signal to the server. |
820 | 820 | NETWORK_WriteByte( &g_LocalBuffer.ByteStream, CLCC_ATTEMPTCONNECTION ); |
821 | - NETWORK_WriteString( &g_LocalBuffer.ByteStream, DOTVERSIONSTR ); | |
821 | + //NETWORK_WriteString( &g_LocalBuffer.ByteStream, DOTVERSIONSTR ); | |
822 | + // [BB] Stay network compatible with 3.0. | |
823 | + NETWORK_WriteString( &g_LocalBuffer.ByteStream, "3.0" ); | |
822 | 824 | NETWORK_WriteString( &g_LocalBuffer.ByteStream, cl_password ); |
823 | 825 | NETWORK_WriteByte( &g_LocalBuffer.ByteStream, cl_connect_flags ); |
824 | 826 | NETWORK_WriteByte( &g_LocalBuffer.ByteStream, cl_hideaccount ); |
@@ -1912,7 +1912,9 @@ | ||
1912 | 1912 | |
1913 | 1913 | { |
1914 | 1914 | // Make sure the version matches. |
1915 | - if ( stricmp( clientVersion.GetChars(), DOTVERSIONSTR ) != 0 ) | |
1915 | + // if ( stricmp( clientVersion.GetChars(), DOTVERSIONSTR ) != 0 ) | |
1916 | + // [BB] Stay network compatible with 3.0. | |
1917 | + if ( stricmp( clientVersion.GetChars(), "3.0" ) != 0 ) | |
1916 | 1918 | { |
1917 | 1919 | SERVER_ClientError( lClient, NETWORK_ERRORCODE_WRONGVERSION ); |
1918 | 1920 | #ifdef CREATE_PACKET_LOG |
@@ -46,7 +46,7 @@ | ||
46 | 46 | |
47 | 47 | #define GAME_MAJOR_VERSION 3 |
48 | 48 | #define GAME_MINOR_VERSION 0 |
49 | -#define GAMEVER_STRING "3.0" | |
49 | +#define GAMEVER_STRING "3.0.1" | |
50 | 50 | #define DOTVERSIONSTR GAMEVER_STRING |
51 | 51 | #define VERSIONSTR DOTVERSIONSTR |
52 | 52 |
@@ -80,7 +80,9 @@ | ||
80 | 80 | // [BB] Use the revision number to automatically make builds from |
81 | 81 | // different revisions incompatible. Skulltag only uses one byte |
82 | 82 | // to transfer NETGAMEVERSION, so we need to limit its value to [0,255]. |
83 | -#define NETGAMEVERSION (GetRevisionNumber() % 256) | |
83 | +//#define NETGAMEVERSION (GetRevisionNumber() % 256) | |
84 | +// [BB] Stay network compatible with 3.0. | |
85 | +#define NETGAMEVERSION (1504266050 % 256) | |
84 | 86 | |
85 | 87 | // Version stored in the ini's [LastRun] section. |
86 | 88 | // Bump it if you made some configuration change that you want to |