chore/fix: clean up NetworkSocketLayer, fix console compile errors

This commit is contained in:
2026-09-13 14:10:24 +01:00
parent 0405a47bd1
commit a2dad85bb1
16 changed files with 781 additions and 296 deletions
@@ -235,7 +235,7 @@ void CPlatformNetworkManagerStub::DoWork()
while (NetworkSocketLayer::PopDisconnectedSmallId(&disconnectedSmallId))
{
IQNetPlayer* qnetPlayer = m_pIQNet->GetPlayerBySmallId(disconnectedSmallId);
if (qnetPlayer != nullptr && qnetPlayer->m_smallId == disconnectedSmallId)
if (qnetPlayer != NULL && qnetPlayer->m_smallId == disconnectedSmallId)
{
NotifyPlayerLeaving(qnetPlayer);
qnetPlayer->m_smallId = 0;
@@ -278,7 +278,11 @@ void CPlatformNetworkManagerStub::DoWork()
if (!m_bLeaveGameOnTick)
{
m_bLeaveGameOnTick = true;
#if defined __PS3__ || defined __PSVITA__ || defined __ORBIS__
g_NetworkManager.HandleDisconnect(false, false);
#else
g_NetworkManager.HandleDisconnect(false);
#endif
}
}
else