summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
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();