summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-18 21:04:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-18 21:04:56 +0300
commit1dbf1cf1d87a38a327673b69c184ad662bd12cc4 (patch)
tree44ac0a1fa7a0202c8f67088ac07970e27be483a4 /src/game.cpp
parent1e91bca70f5f9d6eba3e553827c1e295d483c4a5 (diff)
downloadmv-1dbf1cf1d87a38a327673b69c184ad662bd12cc4.tar.gz
mv-1dbf1cf1d87a38a327673b69c184ad662bd12cc4.tar.bz2
mv-1dbf1cf1d87a38a327673b69c184ad662bd12cc4.tar.xz
mv-1dbf1cf1d87a38a327673b69c184ad662bd12cc4.zip
Add option gmTabMinimalLevel to paths.xml for show gm chat tab.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b364bd2e3..00de21004 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -287,14 +287,13 @@ static void createGuiWindows()
battleChatTab = nullptr;
}
- if (localPlayer && !gmChatTab && config.getBoolValue("enableGmTab")
- && localPlayer->getGMLevel() > 0)
+ if (chatWindow)
{
- chatWindow->addSpecialChannelTab(GM_CHANNEL, false);
- }
+ chatWindow->showGMTab();
- if (!isSafeMode && chatWindow)
- chatWindow->loadState();
+ if (!isSafeMode)
+ chatWindow->loadState();
+ }
if (setupWindow)
setupWindow->externalUpdate();