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:
@@ -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;
|
||||
|
||||
@@ -2075,13 +2075,12 @@ namespace Game
|
||||
{
|
||||
var DBVersion = "Unknown world database.";
|
||||
|
||||
SQLResult result = DB.World.Query("SELECT db_version, cache_id, hotfix_cache_id FROM version LIMIT 1");
|
||||
SQLResult result = DB.World.Query("SELECT db_version, cache_id FROM version LIMIT 1");
|
||||
if (!result.IsEmpty())
|
||||
{
|
||||
DBVersion = result.Read<string>(0);
|
||||
// will be overwrite by config values if different and non-0
|
||||
WorldConfig.SetValue(WorldCfg.ClientCacheVersion, result.Read<uint>(1));
|
||||
WorldConfig.SetValue(WorldCfg.HotfixCacheVersion, result.Read<uint>(2));
|
||||
}
|
||||
|
||||
return DBVersion;
|
||||
|
||||
@@ -743,7 +743,7 @@ namespace Game
|
||||
SendSetTimeZoneInformation();
|
||||
SendFeatureSystemStatusGlueScreen();
|
||||
SendClientCacheVersion(WorldConfig.GetUIntValue(WorldCfg.ClientCacheVersion));
|
||||
SendAvailableHotfixes(WorldConfig.GetIntValue(WorldCfg.HotfixCacheVersion));
|
||||
SendAvailableHotfixes();
|
||||
SendTutorialsData();
|
||||
|
||||
SQLResult result = holder.GetResult(AccountInfoQueryLoad.GlobalRealmCharacterCounts);
|
||||
|
||||
Reference in New Issue
Block a user