mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
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:
parent
6f7fa98996
commit
c613dbb2f7
@ -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);
|
||||
|
||||
@ -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); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user