Don't set member offline before linkdead

This prevents toggling to offline state before setting to and from
linkdead status. Without this change, a new expedition leader will be
chosen as soon as the current leader goes linkdead. On live an
expedition leader retains leadership while linkdead
This commit is contained in:
hg
2020-07-11 20:59:36 -04:00
parent d8b825f478
commit 9c4df6f026
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -738,7 +738,7 @@ public:
bool TGB() const { return tgb; }
void OnDisconnect(bool hard_disconnect);
void OnDisconnect(bool hard_disconnect, bool linkdead = false);
uint16 GetSkillPoints() { return m_pp.points;}
void SetSkillPoints(int inp) { m_pp.points = inp;}