Fix linkdead expedition member offline update

This was leaving expedition members with linkdead status even after
the client was timed out by the server
This commit is contained in:
hg
2020-07-11 12:39:21 -04:00
parent a3a05485e2
commit 272a15286d
+13 -11
View File
@@ -180,6 +180,13 @@ bool Client::Process() {
if (myraid) {
myraid->MemberZoned(this);
}
Expedition* expedition = GetExpedition();
if (expedition)
{
expedition->SetMemberStatus(this, ExpeditionMemberStatus::Offline);
}
return false; //delete client
}
@@ -655,11 +662,6 @@ bool Client::Process() {
myraid->MemberZoned(this);
}
}
Expedition* expedition = GetExpedition();
if (expedition && !bZoning)
{
expedition->SetMemberStatus(this, ExpeditionMemberStatus::Offline);
}
OnDisconnect(false);
return false;
}
@@ -701,12 +703,6 @@ void Client::OnDisconnect(bool hard_disconnect) {
if (MyRaid)
MyRaid->MemberZoned(this);
Expedition* expedition = GetExpedition();
if (expedition)
{
expedition->SetMemberStatus(this, ExpeditionMemberStatus::Offline);
}
parse->EventPlayer(EVENT_DISCONNECT, this, "", 0);
/* QS: PlayerLogConnectDisconnect */
@@ -716,6 +712,12 @@ void Client::OnDisconnect(bool hard_disconnect) {
}
}
Expedition* expedition = GetExpedition();
if (expedition && !bZoning)
{
expedition->SetMemberStatus(this, ExpeditionMemberStatus::Offline);
}
RemoveAllAuras();
Mob *Other = trade->With();