This is a fork of Zandronum for TSPG.
Revisão | 3fb9b28e33ff7f28de2c6657109063b29b8ad370 (tree) |
---|---|
Hora | 2017-03-19 02:54:46 |
Autor | Benjamin Berkels <torr.samaho@quan...> |
Commiter | Benjamin Berkels |
fixed a compiler warning
@@ -1795,7 +1795,7 @@ | ||
1795 | 1795 | FString clientVersion; |
1796 | 1796 | FString clientPassword; |
1797 | 1797 | char szServerPassword[MAX_NETWORK_STRING]; |
1798 | - LONG lClientNetworkGameVersion; | |
1798 | + unsigned int clientNetworkGameVersion; | |
1799 | 1799 | char szAddress[4][4]; |
1800 | 1800 | ULONG ulIdx; |
1801 | 1801 | NETADDRESS_s AddressFrom; |
@@ -1888,7 +1888,7 @@ | ||
1888 | 1888 | g_aClients[lClient].WantHideAccount = !!NETWORK_ReadByte( pByteStream ); |
1889 | 1889 | |
1890 | 1890 | // Read in the client's network game version. |
1891 | - lClientNetworkGameVersion = NETWORK_ReadByte( pByteStream ); | |
1891 | + clientNetworkGameVersion = NETWORK_ReadByte( pByteStream ); | |
1892 | 1892 | |
1893 | 1893 | g_aClients[lClient].SavedPackets.Clear(); |
1894 | 1894 | g_aClients[lClient].PacketBuffer.Clear(); |
@@ -1914,7 +1914,7 @@ | ||
1914 | 1914 | } |
1915 | 1915 | |
1916 | 1916 | // Make sure the network game version matches. |
1917 | - if ( NETGAMEVERSION != lClientNetworkGameVersion ) | |
1917 | + if ( NETGAMEVERSION != clientNetworkGameVersion ) | |
1918 | 1918 | { |
1919 | 1919 | SERVER_ClientError( lClient, NETWORK_ERRORCODE_WRONGPROTOCOLVERSION ); |
1920 | 1920 | #ifdef CREATE_PACKET_LOG |