New configuration option: GM.Visible

regulates visibility of GM at login.

--HG--
branch : trunk
This commit is contained in:
Aokromes committed 2009-05-12 08:22:06 +02:00
1 parent a9349e06ba
commit a882c4538a
4 files changed
+20

No files matched your search

+11
View File
@@ -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: