From 25ffdbc5ef0859aeaadfa132329a498e86827e68 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 18 Aug 2024 18:59:58 +0200 Subject: Core/Realms: Realmlist refactors * Removed global realm variable from World and use RealmList everywhere * Match auth build key with client version * Restored allowedSecurityLevel checks for realmlist packet building * Restored updating population field, mysteriously removed 15 years ago in f20b25d1c90f608deab28c9957b3b376ab2a0d50 (cherry picked from commit c4b710446d62c95eb8124175203fa5f394912594) # Conflicts: # sql/base/auth_database.sql --- src/server/bnetserver/Server/Session.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/bnetserver/Server') diff --git a/src/server/bnetserver/Server/Session.cpp b/src/server/bnetserver/Server/Session.cpp index c94ee6e3e56..46fd1d1479a 100644 --- a/src/server/bnetserver/Server/Session.cpp +++ b/src/server/bnetserver/Server/Session.cpp @@ -625,7 +625,7 @@ uint32 Battlenet::Session::GetLastCharPlayed(std::unordered_mapLastPlayedCharacters.find(subRegion->string_value()); if (lastPlayerChar != _gameAccountInfo->LastPlayedCharacters.end()) { - std::vector compressed = sRealmList->GetRealmEntryJSON(lastPlayerChar->second.RealmId, _build); + std::vector compressed = sRealmList->GetRealmEntryJSON(lastPlayerChar->second.RealmId, _build, _gameAccountInfo->SecurityLevel); if (compressed.empty()) return ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE; @@ -662,7 +662,7 @@ uint32 Battlenet::Session::GetRealmList(std::unordered_mapstring_value(); - std::vector compressed = sRealmList->GetRealmList(_build, subRegionId); + std::vector compressed = sRealmList->GetRealmList(_build, _gameAccountInfo->SecurityLevel, subRegionId); if (compressed.empty()) return ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE; @@ -698,7 +698,7 @@ uint32 Battlenet::Session::JoinRealm(std::unordered_mapJoinRealm(realmAddress->uint_value(), _build, GetRemoteIpAddress(), _clientSecret, GetLocaleByName(_locale), - _os, _timezoneOffset, _gameAccountInfo->Name, response); + _os, _timezoneOffset, _gameAccountInfo->Name, _gameAccountInfo->SecurityLevel, response); return ERROR_WOW_SERVICES_INVALID_JOIN_TICKET; } -- cgit v1.2.3