mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Some networking/matchmaking improvements.
This commit is contained in:
parent
0e72e995ee
commit
a0b66407bf
4 changed files with 20 additions and 7 deletions
|
|
@ -453,9 +453,8 @@ bool GetP2PSessionState( CSteamID steamIDRemote, P2PSessionState_t *pConnectionS
|
|||
pConnectionState->m_bUsingRelay = false;
|
||||
pConnectionState->m_nBytesQueuedForSend = 0;
|
||||
pConnectionState->m_nPacketsQueuedForSend = 0;
|
||||
//TODO ip?
|
||||
pConnectionState->m_nRemoteIP = 0;
|
||||
pConnectionState->m_nRemotePort = 0;
|
||||
pConnectionState->m_nRemoteIP = network->getIP(steamIDRemote);
|
||||
pConnectionState->m_nRemotePort = 12345;
|
||||
}
|
||||
|
||||
PRINT_DEBUG("Connection\n");
|
||||
|
|
@ -470,7 +469,7 @@ bool GetP2PSessionState( CSteamID steamIDRemote, P2PSessionState_t *pConnectionS
|
|||
// P2P packet relay is allowed by default
|
||||
bool AllowP2PPacketRelay( bool bAllow )
|
||||
{
|
||||
PRINT_DEBUG("Steam_Networking::AllowP2PPacketRelay\n");
|
||||
PRINT_DEBUG("Steam_Networking::AllowP2PPacketRelay %u\n", bAllow);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue