mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Working on stuck behavior handler, fix for world crash when you can't connect to a login server.
This commit is contained in:
@@ -306,6 +306,20 @@ void LoginServer::SendStatus() {
|
||||
delete pack;
|
||||
}
|
||||
|
||||
void LoginServer::SendPacket(ServerPacket *pack)
|
||||
{
|
||||
if (IsLegacy) {
|
||||
if (legacy_client) {
|
||||
legacy_client->SendPacket(pack);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (client) {
|
||||
client->SendPacket(pack);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void LoginServer::SendAccountUpdate(ServerPacket* pack) {
|
||||
ServerLSAccountUpdate_Struct* s = (ServerLSAccountUpdate_Struct *)pack->pBuffer;
|
||||
if (CanUpdate()) {
|
||||
@@ -315,3 +329,19 @@ void LoginServer::SendAccountUpdate(ServerPacket* pack) {
|
||||
SendPacket(pack);
|
||||
}
|
||||
}
|
||||
|
||||
bool LoginServer::Connected()
|
||||
{
|
||||
if (IsLegacy) {
|
||||
if (legacy_client) {
|
||||
return legacy_client->Connected();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (client) {
|
||||
return client->Connected();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -40,9 +40,9 @@ public:
|
||||
void SendNewInfo();
|
||||
void SendStatus();
|
||||
|
||||
void SendPacket(ServerPacket* pack) { if (IsLegacy) legacy_client->SendPacket(pack); else client->SendPacket(pack); }
|
||||
void SendPacket(ServerPacket* pack);
|
||||
void SendAccountUpdate(ServerPacket* pack);
|
||||
bool Connected() { return IsLegacy ? legacy_client->Connected() : client->Connected(); }
|
||||
bool Connected();
|
||||
bool MiniLogin() { return minilogin; }
|
||||
bool CanUpdate() { return CanAccountUpdate; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user