forked from cafeberry/cafeberry
chore/fix: clean up NetworkSocketLayer, fix console compile errors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user