Fix issues with Client::SetHideMe (#2403)

Arg was shadowing the member variable and we weren't updating the member
variable
This commit is contained in:
Michael Cook (mackal) 2022-09-01 11:48:23 -04:00 committed by GitHub
parent 6f7fa98996
commit c613dbb2f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -3385,10 +3385,12 @@ void Client::SetTint(int16 in_slot, EQ::textures::Tint_Struct& color) {
}
void Client::SetHideMe(bool gm_hide_me)
void Client::SetHideMe(bool flag)
{
EQApplicationPacket app;
gm_hide_me = flag;
if (gm_hide_me) {
database.SetHideMe(AccountID(), true);
CreateDespawnPacket(&app, false);

View File

@ -348,7 +348,7 @@ public:
int GetIPExemption();
void SetIPExemption(int exemption_amount);
inline bool GetHideMe() const { return gm_hide_me; }
void SetHideMe(bool hm);
void SetHideMe(bool flag);
inline uint16 GetPort() const { return port; }
bool IsDead() const { return(dead); }
bool IsUnconscious() const { return ((current_hp <= 0) ? true : false); }