Core/Misc: always output client cache version on loading

This commit is contained in:
ariel-
2017-03-01 12:47:30 -03:00
committed by Aokromes
parent 66e856fc50
commit d93be13e6e

View File

@@ -1136,13 +1136,11 @@ void World::LoadConfigSettings(bool reload)
{
// overwrite DB/old value
if (clientCacheId > 0)
{
m_int_configs[CONFIG_CLIENTCACHE_VERSION] = clientCacheId;
TC_LOG_INFO("server.loading", "Client cache version set to: %u", clientCacheId);
}
else
TC_LOG_ERROR("server.loading", "ClientCacheVersion can't be negative %d, ignored.", clientCacheId);
}
TC_LOG_INFO("server.loading", "Client cache version set to: %u", m_int_configs[CONFIG_CLIENTCACHE_VERSION]);
m_int_configs[CONFIG_GUILD_NEWS_LOG_COUNT] = sConfigMgr->GetIntDefault("Guild.NewsLogRecordsCount", GUILD_NEWSLOG_MAX_RECORDS);
if (m_int_configs[CONFIG_GUILD_NEWS_LOG_COUNT] > GUILD_NEWSLOG_MAX_RECORDS)