mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 01:01:30 +00:00
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:
parent
ba9ce2335e
commit
d8b825f478
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user