Core/Misc: always output client cache version on loading
Port From (https://github.com/TrinityCore/TrinityCore/commit/9e840d05c45f0ee818d7676316b20561ddf790a9)
This commit is contained in:
@@ -725,26 +725,22 @@ namespace Game
|
||||
{
|
||||
// overwrite DB/old value
|
||||
if (clientCacheId > 0)
|
||||
{
|
||||
Values[WorldCfg.ClientCacheVersion] = clientCacheId;
|
||||
Log.outInfo(LogFilter.ServerLoading, "Client cache version set to: {0}", clientCacheId);
|
||||
}
|
||||
else
|
||||
Log.outError(LogFilter.ServerLoading, "ClientCacheVersion can't be negative {0}, ignored.", clientCacheId);
|
||||
}
|
||||
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;
|
||||
Log.outInfo(LogFilter.ServerLoading, "Hotfix cache version set to: {0}", 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)
|
||||
|
||||
Reference in New Issue
Block a user