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
+2 -2
View File
@@ -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;
}