mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
Revert "Don't set member offline before linkdead"
This reverts commit 8d27602aa0b3f766760f0952389c988f1b150de6. This doesn't work because a linkdead leader coming back online will toggle to offline state anyway
This commit is contained in:
parent
6e9f920931
commit
955cbeb826
@ -739,7 +739,7 @@ public:
|
|||||||
|
|
||||||
bool TGB() const { return tgb; }
|
bool TGB() const { return tgb; }
|
||||||
|
|
||||||
void OnDisconnect(bool hard_disconnect, bool linkdead = false);
|
void OnDisconnect(bool hard_disconnect);
|
||||||
|
|
||||||
uint16 GetSkillPoints() { return m_pp.points;}
|
uint16 GetSkillPoints() { return m_pp.points;}
|
||||||
void SetSkillPoints(int inp) { m_pp.points = inp;}
|
void SetSkillPoints(int inp) { m_pp.points = inp;}
|
||||||
|
|||||||
@ -559,20 +559,17 @@ bool Client::Process() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (client_state != CLIENT_LINKDEAD && !eqs->CheckState(ESTABLISHED)) {
|
if (client_state != CLIENT_LINKDEAD && !eqs->CheckState(ESTABLISHED)) {
|
||||||
|
OnDisconnect(true);
|
||||||
LogInfo("Client linkdead: {}", name);
|
LogInfo("Client linkdead: {}", name);
|
||||||
|
|
||||||
if (Admin() > 100) {
|
if (Admin() > 100) {
|
||||||
OnDisconnect(true);
|
|
||||||
if (GetMerc()) {
|
if (GetMerc()) {
|
||||||
GetMerc()->Save();
|
GetMerc()->Save();
|
||||||
GetMerc()->Depop();
|
GetMerc()->Depop();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if (!linkdead_timer.Enabled()) {
|
||||||
OnDisconnect(true, true);
|
|
||||||
|
|
||||||
if (!linkdead_timer.Enabled()) {
|
|
||||||
linkdead_timer.Start(RuleI(Zone, ClientLinkdeadMS));
|
linkdead_timer.Start(RuleI(Zone, ClientLinkdeadMS));
|
||||||
client_state = CLIENT_LINKDEAD;
|
client_state = CLIENT_LINKDEAD;
|
||||||
AI_Start(CLIENT_LD_TIMEOUT);
|
AI_Start(CLIENT_LD_TIMEOUT);
|
||||||
@ -691,7 +688,7 @@ bool Client::Process() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Just a set of actions preformed all over in Client::Process */
|
/* Just a set of actions preformed all over in Client::Process */
|
||||||
void Client::OnDisconnect(bool hard_disconnect, bool linkdead) {
|
void Client::OnDisconnect(bool hard_disconnect) {
|
||||||
if(hard_disconnect)
|
if(hard_disconnect)
|
||||||
{
|
{
|
||||||
LeaveGroup();
|
LeaveGroup();
|
||||||
@ -715,7 +712,7 @@ void Client::OnDisconnect(bool hard_disconnect, bool linkdead) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Expedition* expedition = GetExpedition();
|
Expedition* expedition = GetExpedition();
|
||||||
if (expedition && !bZoning && !linkdead && !linkdead_timer.Enabled())
|
if (expedition && !bZoning)
|
||||||
{
|
{
|
||||||
expedition->SetMemberStatus(this, ExpeditionMemberStatus::Offline);
|
expedition->SetMemberStatus(this, ExpeditionMemberStatus::Offline);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user