aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorAokromes <none@none>2009-05-12 08:22:06 +0200
committerAokromes <none@none>2009-05-12 08:22:06 +0200
commita882c4538a59d4aa042ca78a234f640b35cefcd2 (patch)
tree30f2928dcaa075235c3149246d5fb49a4cfca618 /src/game/Player.cpp
parenta9349e06ba77c6a8502f98765ef90119ee52aca5 (diff)
New configuration option: GM.Visible
regulates visibility of GM at login. --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 4ebd4f03684..fcdeb30a42d 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -14338,6 +14338,17 @@ bool Player::LoadFromDB( uint32 guid, SqlQueryHolder *holder )
break;
}
+ switch(sWorld.getConfig(CONFIG_GM_VISIBLE_STATE))
+ {
+ default:
+ case 0: SetGMVisible(false); break; // invisible
+ case 1: break; // visible
+ case 2: // save state
+ if(extraflags & PLAYER_EXTRA_GM_INVISIBLE)
+ SetGMVisible(false);
+ break;
+ }
+
switch(sWorld.getConfig(CONFIG_GM_CHAT))
{
default: