diff options
author | leak <none@none> | 2010-12-22 00:12:03 +0100 |
---|---|---|
committer | leak <none@none> | 2010-12-22 00:12:03 +0100 |
commit | 6115b0bd5f05b3e9986f2ff1e1d8f142a4538e7f (patch) | |
tree | c41d4dfbfbb9b7b2ee60aab652fb0f59d7641b6d /src/server/game/Conditions/DisableMgr.cpp | |
parent | a45a039e736fb81aff6c2a4812561de220da62ec (diff) |
Removing ProgressBars as they are performing badly on startup.
[**************************************************] 100%
R.I.P
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Conditions/DisableMgr.cpp')
-rwxr-xr-x | src/server/game/Conditions/DisableMgr.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp index 17004b3f6a3..8c2a14cd159 100755 --- a/src/server/game/Conditions/DisableMgr.cpp +++ b/src/server/game/Conditions/DisableMgr.cpp @@ -16,7 +16,6 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "ProgressBar.h" #include "SpellMgr.h" #include "ObjectMgr.h" #include "DisableMgr.h" @@ -50,19 +49,15 @@ void DisableMgr::LoadDisables() if (!result) { - barGoLink bar(1); - bar.step(); sLog.outString(">> Loaded 0 disables. DB table `disables` is empty!"); sLog.outString(); return; } - barGoLink bar(result->GetRowCount()); Field* fields; do { - bar.step(); fields = result->Fetch(); DisableType type = DisableType(fields[0].GetUInt32()); if (type >= MAX_DISABLE_TYPES) @@ -194,18 +189,14 @@ void DisableMgr::CheckQuestDisables() uint32 count = m_DisableMap[DISABLE_TYPE_QUEST].size(); if (!count) { - barGoLink bar(1); - bar.step(); sLog.outString(">> Checked 0 quest disables."); sLog.outString(); return; } - barGoLink bar(count); // check only quests, rest already done at startup for (DisableTypeMap::iterator itr = m_DisableMap[DISABLE_TYPE_QUEST].begin(); itr != m_DisableMap[DISABLE_TYPE_QUEST].end();) { - bar.step(); const uint32 entry = itr->first; if (!sObjectMgr.GetQuestTemplate(entry)) { |