mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-07-06 12:08:32 +00:00
prepare code for dedicated server support
This commit is contained in:
@@ -89,6 +89,7 @@ void PendingConnection::handlePreLogin(shared_ptr<PreLoginPacket> packet)
|
||||
return;
|
||||
}
|
||||
// printf("Server: handlePreLogin\n");
|
||||
app.DebugPrintf("PreLogin received from \"%ls\"\n", packet->loginKey.c_str());
|
||||
name = packet->loginKey; // 4J Stu - Change from the login packet as we know better on client end during the pre-login packet
|
||||
sendPreLoginResponse();
|
||||
}
|
||||
@@ -143,6 +144,7 @@ void PendingConnection::sendPreLoginResponse()
|
||||
|
||||
void PendingConnection::handleLogin(shared_ptr<LoginPacket> packet)
|
||||
{
|
||||
app.DebugPrintf("Login received from \"%ls\" (protocol %d)\n", name.c_str(), packet->clientVersion);
|
||||
// printf("Server: handleLogin\n");
|
||||
//name = packet->userName;
|
||||
if (packet->clientVersion != SharedConstants::NETWORK_PROTOCOL_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user