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

This commit is contained in:
pieeebot committed 2026-09-13 14:10:24 +01:00
1 parent 0405a47bd1
commit a2dad85bb1
16 files changed
+781 -296

No files matched your search

@@ -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