diff options
| author | Shauren <shauren.trinity@gmail.com> | 2020-08-13 14:15:26 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2020-08-13 14:15:26 +0200 |
| commit | 2c99678118798279372f17d4bb5f5a88ac95c413 (patch) | |
| tree | 8e69cc8b4ab1025b5bb62ed0d2da7406d53f869c /src/server/game/Server | |
| parent | 5a6970e5564cb0b41a21208b165501bcff822189 (diff) | |
Core/PacketIO: Send the expected value in available hotfixes packet - realm address, not arbitrary number (it no longer has any effect for clearing client cache)
Diffstat (limited to 'src/server/game/Server')
| -rw-r--r-- | src/server/game/Server/Packets/HotfixPackets.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/Server/Packets/HotfixPackets.h | 6 | ||||
| -rw-r--r-- | src/server/game/Server/WorldSession.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/Server/WorldSession.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/server/game/Server/Packets/HotfixPackets.cpp b/src/server/game/Server/Packets/HotfixPackets.cpp index 4f77cff5721..eac6bb07bc0 100644 --- a/src/server/game/Server/Packets/HotfixPackets.cpp +++ b/src/server/game/Server/Packets/HotfixPackets.cpp @@ -63,7 +63,7 @@ WorldPacket const* DBReply::Write() WorldPacket const* AvailableHotfixes::Write() { - _worldPacket << int32(HotfixCacheVersion); + _worldPacket << int32(VirtualRealmAddress); _worldPacket << uint32(HotfixCount); for (DB2Manager::HotfixRecord const& hotfixRecord : Hotfixes) _worldPacket << hotfixRecord; diff --git a/src/server/game/Server/Packets/HotfixPackets.h b/src/server/game/Server/Packets/HotfixPackets.h index 497a85d55d9..27275cc5db6 100644 --- a/src/server/game/Server/Packets/HotfixPackets.h +++ b/src/server/game/Server/Packets/HotfixPackets.h @@ -61,12 +61,12 @@ namespace WorldPackets class AvailableHotfixes final : public ServerPacket { public: - AvailableHotfixes(int32 hotfixCacheVersion, uint32 hotfixCount, DB2Manager::HotfixContainer const& hotfixes) - : ServerPacket(SMSG_AVAILABLE_HOTFIXES), HotfixCacheVersion(hotfixCacheVersion), HotfixCount(hotfixCount), Hotfixes(hotfixes) { } + AvailableHotfixes(int32 virtualRealmAddress, uint32 hotfixCount, DB2Manager::HotfixContainer const& hotfixes) + : ServerPacket(SMSG_AVAILABLE_HOTFIXES), VirtualRealmAddress(virtualRealmAddress), HotfixCount(hotfixCount), Hotfixes(hotfixes) { } WorldPacket const* Write() override; - int32 HotfixCacheVersion; + int32 VirtualRealmAddress; uint32 HotfixCount; DB2Manager::HotfixContainer const& Hotfixes; }; diff --git a/src/server/game/Server/WorldSession.cpp b/src/server/game/Server/WorldSession.cpp index 9b43398d691..8fbd99fd348 100644 --- a/src/server/game/Server/WorldSession.cpp +++ b/src/server/game/Server/WorldSession.cpp @@ -1078,7 +1078,7 @@ void WorldSession::InitializeSessionCallback(LoginDatabaseQueryHolder* realmHold SendSetTimeZoneInformation(); SendFeatureSystemStatusGlueScreen(); SendClientCacheVersion(sWorld->getIntConfig(CONFIG_CLIENTCACHE_VERSION)); - SendAvailableHotfixes(int32(sWorld->getIntConfig(CONFIG_HOTFIX_CACHE_VERSION))); + SendAvailableHotfixes(); SendTutorialsData(); if (PreparedQueryResult characterCountsResult = holder->GetPreparedResult(AccountInfoQueryHolder::GLOBAL_REALM_CHARACTER_COUNTS)) diff --git a/src/server/game/Server/WorldSession.h b/src/server/game/Server/WorldSession.h index caefab3899e..8027cec4f43 100644 --- a/src/server/game/Server/WorldSession.h +++ b/src/server/game/Server/WorldSession.h @@ -930,7 +930,7 @@ class TC_GAME_API WorldSession void SendAuthResponse(uint32 code, bool queued, uint32 queuePos = 0); void SendClientCacheVersion(uint32 version); - void SendAvailableHotfixes(int32 version); + void SendAvailableHotfixes(); void InitializeSession(); void InitializeSessionCallback(LoginDatabaseQueryHolder* realmHolder, CharacterDatabaseQueryHolder* holder); |
