summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 4bbaa9324..025f4c6d1 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -97,6 +97,7 @@
#include "net/gamehandler.h"
#include "net/net.h"
#include "net/packetcounters.h"
+#include "net/serverfeatures.h"
#include "resources/delayedmanager.h"
#include "resources/imagewriter.h"
@@ -238,7 +239,8 @@ static void createGuiWindows()
if (config.getBoolValue("showChatHistory"))
localChatTab->loadFromLogFile("#General");
- if (serverVersion >= 8 && serverConfig.getValue("enableLangTab", 1))
+ if (Net::getServerFeatures()->haveLangTab()
+ && serverConfig.getValue("enableLangTab", 1))
{
const std::string lang = getLangShort();
if (lang.size() == 2)