From 2a09c2afe8bd1f476ef1901c9c639896534a081c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 19 Feb 2013 00:43:41 +0300 Subject: Add option to enable/disable gm tab. Enabled by default. --- src/game.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') 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); -- cgit v1.2.3-70-g09d2