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)

Port From (https://github.com/TrinityCore/TrinityCore/commit/2c99678118798279372f17d4bb5f5a88ac95c413)
This commit is contained in:
hondacrx
2020-08-21 20:30:53 -04:00
parent e521e70f76
commit 67bacbb731
7 changed files with 8 additions and 29 deletions
-11
View File
@@ -738,17 +738,6 @@ namespace Game
}
Log.outInfo(LogFilter.ServerLoading, "Client cache version set to: {0}", clientCacheId);
int hotfixCacheId = GetDefaultValue("HotfixCacheVersion", 0);
if (hotfixCacheId != 0)
{
// overwrite DB/old value
if (hotfixCacheId > 0)
Values[WorldCfg.HotfixCacheVersion] = hotfixCacheId;
else
Log.outError(LogFilter.ServerLoading, "HotfixCacheVersion can't be negative {0}, ignored.", hotfixCacheId);
}
Log.outInfo(LogFilter.ServerLoading, "Hotfix cache version set to: {0}", hotfixCacheId);
Values[WorldCfg.GuildNewsLogCount] = GetDefaultValue("Guild.NewsLogRecordsCount", GuildConst.NewsLogMaxRecords);
if ((int)Values[WorldCfg.GuildNewsLogCount] > GuildConst.NewsLogMaxRecords)
Values[WorldCfg.GuildNewsLogCount] = GuildConst.NewsLogMaxRecords;