• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum for TSPG.


Commit MetaInfo

Revisão3fb9b28e33ff7f28de2c6657109063b29b8ad370 (tree)
Hora2017-03-19 02:54:46
AutorBenjamin Berkels <torr.samaho@quan...>
CommiterBenjamin Berkels

Mensagem de Log

fixed a compiler warning

Mudança Sumário

Diff

diff -r aee607444663 -r 3fb9b28e33ff src/sv_main.cpp
--- a/src/sv_main.cpp Sun Mar 12 19:29:47 2017 +0100
+++ b/src/sv_main.cpp Sat Mar 18 18:54:46 2017 +0100
@@ -1795,7 +1795,7 @@
17951795 FString clientVersion;
17961796 FString clientPassword;
17971797 char szServerPassword[MAX_NETWORK_STRING];
1798- LONG lClientNetworkGameVersion;
1798+ unsigned int clientNetworkGameVersion;
17991799 char szAddress[4][4];
18001800 ULONG ulIdx;
18011801 NETADDRESS_s AddressFrom;
@@ -1888,7 +1888,7 @@
18881888 g_aClients[lClient].WantHideAccount = !!NETWORK_ReadByte( pByteStream );
18891889
18901890 // Read in the client's network game version.
1891- lClientNetworkGameVersion = NETWORK_ReadByte( pByteStream );
1891+ clientNetworkGameVersion = NETWORK_ReadByte( pByteStream );
18921892
18931893 g_aClients[lClient].SavedPackets.Clear();
18941894 g_aClients[lClient].PacketBuffer.Clear();
@@ -1914,7 +1914,7 @@
19141914 }
19151915
19161916 // Make sure the network game version matches.
1917- if ( NETGAMEVERSION != lClientNetworkGameVersion )
1917+ if ( NETGAMEVERSION != clientNetworkGameVersion )
19181918 {
19191919 SERVER_ClientError( lClient, NETWORK_ERRORCODE_WRONGPROTOCOLVERSION );
19201920 #ifdef CREATE_PACKET_LOG