diff options
Diffstat (limited to 'src/being/playerinfo.cpp')
-rw-r--r-- | src/being/playerinfo.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/being/playerinfo.cpp b/src/being/playerinfo.cpp index 25620d5ba..8a9c55c5e 100644 --- a/src/being/playerinfo.cpp +++ b/src/being/playerinfo.cpp @@ -42,6 +42,8 @@ #include "utils/delete2.h" +#include "utils/translation/translationmanager.h" + #include "debug.h" namespace PlayerInfo @@ -64,6 +66,7 @@ BeingId mElementalId = BeingId_zero; Trading mTrading = Trading_false; bool mVending = false; int mLevelProgress = 0; +int mServerLanguage = -1; std::set<int> mProtectedItems; // --- Triggers --------------------------------------------------------------- @@ -639,4 +642,18 @@ bool isVending() return mVending; } +void setServerLanguage(const int lang) +{ + if (lang != mServerLanguage) + { + mServerLanguage = lang; + TranslationManager::loadDictionaryLang(); + } +} + +int getServerLanguage() +{ + return mServerLanguage; +} + } // namespace PlayerInfo |