forked from cafeberry/cafeberry
chore/fix: clean up NetworkSocketLayer, fix console compile errors
This commit is contained in:
@@ -240,13 +240,13 @@ void PendingConnection::handleLogin(shared_ptr<LoginPacket> packet)
|
||||
if (loginXuid == INVALID_XUID) loginXuid = packet->m_onlineXuid;
|
||||
|
||||
bool duplicateXuid = false;
|
||||
if (loginXuid != INVALID_XUID && server->getPlayers()->getPlayer(loginXuid) != nullptr)
|
||||
if (loginXuid != INVALID_XUID && server->getPlayers()->getPlayer(loginXuid) != NULL)
|
||||
{
|
||||
duplicateXuid = true;
|
||||
}
|
||||
else if (packet->m_onlineXuid != INVALID_XUID &&
|
||||
packet->m_onlineXuid != loginXuid &&
|
||||
server->getPlayers()->getPlayer(packet->m_onlineXuid) != nullptr)
|
||||
server->getPlayers()->getPlayer(packet->m_onlineXuid) != NULL)
|
||||
{
|
||||
duplicateXuid = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user