aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRioMcBoo <26213257+RioMcBoo@users.noreply.github.com>2024-04-08 20:02:40 +0300
committerShauren <shauren.trinity@gmail.com>2024-04-08 19:03:21 +0200
commit958b4726b6a2c2352929210704bd3c75018c35a8 (patch)
treeb5e4af0eede2a8cda54cdac3229099d2c0dd0c65 /src
parentc90dbeb648f4bba2c354ed37b89f696f99e5bc94 (diff)
Core/Misc: Fixed forced declined names initialization (#29898)
(cherry picked from commit 4dd200b9e5941c6b323b9159ec3d8239679bf3ab)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/World/World.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp
index 05f8a8e0db3..9ed9c7c85d6 100644
--- a/src/server/game/World/World.cpp
+++ b/src/server/game/World/World.cpp
@@ -1825,6 +1825,11 @@ void World::SetInitialWorldSettings()
// Load IP Location Database
sIPLocation->Load();
+ // always use declined names in the russian client
+ if (Cfg_CategoriesEntry const* category = sCfgCategoriesStore.LookupEntry(m_int_configs[CONFIG_REALM_ZONE]))
+ if (category->GetCreateCharsetMask().HasFlag(CfgCategoriesCharsets::Russian))
+ m_bool_configs[CONFIG_DECLINED_NAMES_USED] = true;
+
std::unordered_map<uint32, std::vector<uint32>> mapData;
for (MapEntry const* mapEntry : sMapStore)
{