From 9e840d05c45f0ee818d7676316b20561ddf790a9 Mon Sep 17 00:00:00 2001 From: ariel- Date: Wed, 1 Mar 2017 12:47:30 -0300 Subject: Core/Misc: always output client cache version on loading * Do same with hotfix (cherrypicked from bb553743afd04193822c09caa76753d33ac86098) --- src/server/game/World/World.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/server') diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 3c29091457c..22c0aa3d545 100644 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -1202,25 +1202,21 @@ 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]); if (int32 hotfixCacheId = sConfigMgr->GetIntDefault("HotfixCacheVersion", 0)) { // overwrite DB/old value if (hotfixCacheId > 0) - { m_int_configs[CONFIG_HOTFIX_CACHE_VERSION] = hotfixCacheId; - TC_LOG_INFO("server.loading", "Hotfix cache version set to: %u", hotfixCacheId); - } else TC_LOG_ERROR("server.loading", "HotfixCacheVersion can't be negative %d, ignored.", hotfixCacheId); } + TC_LOG_INFO("server.loading", "Hotfix cache version set to: %u", m_int_configs[CONFIG_HOTFIX_CACHE_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) -- cgit v1.2.3