This commit is contained in:
Riley Labrecque
2014-01-29 12:54:14 +02:00
parent 1383b358e4
commit 32a75fee62
38 changed files with 258 additions and 86 deletions
+1 -2
View File
@@ -157,8 +157,7 @@ void CSpaceWarClient::OnReceiveServerInfo( CSteamID steamIDGameServer, bool bVAC
m_pQuitMenu->SetHeading( pchServerName );
MsgClientBeginAuthentication_t msg;
msg.m_ulSteamID = SteamUser()->GetSteamID().ConvertToUint64();
msg.m_uTokenLen = SteamUser()->InitiateGameConnection( (void*)&msg.m_rgchToken, ARRAYSIZE( msg.m_rgchToken ), steamIDGameServer, CGameID( SteamUtils()->GetAppID() ), m_unServerIP, m_usServerPort, bVACSecure );
msg.m_uTokenLen = SteamUser()->InitiateGameConnection( (void*)&msg.m_rgchToken, ARRAYSIZE( msg.m_rgchToken ), steamIDGameServer, m_unServerIP, m_usServerPort, bVACSecure );
if ( msg.m_uTokenLen < 1 )
OutputDebugString( "Warning: Looks like InitiateGameConnection didn't give us a good token\n" );