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 | |
| 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')
| -rwxr-xr-x | src/server/game/Conditions/ConditionMgr.cpp | 5 | ||||
| -rwxr-xr-x | src/server/game/Conditions/DisableMgr.cpp | 9 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 99e77e65408..d37c5226189 100755 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -23,7 +23,6 @@ #include "SpellMgr.h" #include "GameEventMgr.h" #include "ObjectMgr.h" -#include "ProgressBar.h" #include "InstanceScript.h" #include "ConditionMgr.h" #include "ScriptMgr.h" @@ -382,19 +381,15 @@ void ConditionMgr::LoadConditions(bool isReload) if (!result) { - barGoLink bar(1); - bar.step(); sLog.outErrorDb(">> Loaded 0 conditions. DB table `groups` is empty!"); sLog.outString(); return; } - barGoLink bar(result->GetRowCount()); uint32 count = 0; do { - bar.step(); Field *fields = result->Fetch(); 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)) { |
