summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-19 00:43:41 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-19 00:43:41 +0300
commit2a09c2afe8bd1f476ef1901c9c639896534a081c (patch)
tree89a87faffaf2792cae734c97a1eb01772b996d70 /src/game.cpp
parente63b10c3a63d93b9a6dfa144624fea8610d7768c (diff)
downloadmanaverse-2a09c2afe8bd1f476ef1901c9c639896534a081c.tar.gz
manaverse-2a09c2afe8bd1f476ef1901c9c639896534a081c.tar.bz2
manaverse-2a09c2afe8bd1f476ef1901c9c639896534a081c.tar.xz
manaverse-2a09c2afe8bd1f476ef1901c9c639896534a081c.zip
Add option to enable/disable gm tab.
Enabled by default.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 798d6010b..c9f12fc66 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -280,8 +280,11 @@ static void createGuiWindows()
battleChatTab = nullptr;
}
- if (player_node && !gmChatTab && player_node->getGMLevel() > 0)
+ if (player_node && !gmChatTab && config.getBoolValue("enableGmTab")
+ && player_node->getGMLevel() > 0)
+ {
gmChatTab = new GmTab(chatWindow);
+ }
if (config.getBoolValue("logToChat"))
logger->setChatWindow(chatWindow);