Removing ProgressBars as they are performing badly on startup.

[**************************************************] 100%
R.I.P

--HG--
branch : trunk
This commit is contained in:
leak
2010-12-22 00:12:03 +01:00
parent a45a039e73
commit 6115b0bd5f
35 changed files with 94 additions and 824 deletions
-9
View File
@@ -60,7 +60,6 @@
#include "Language.h"
#include "CreatureGroups.h"
#include "Transport.h"
#include "ProgressBar.h"
#include "ScriptMgr.h"
#include "AddonMgr.h"
#include "LFGMgr.h"
@@ -1800,19 +1799,15 @@ void World::LoadAutobroadcasts()
if (!result)
{
barGoLink bar(1);
bar.step();
sLog.outString(">> Loaded 0 autobroadcasts definitions. DB table `autobroadcast` is empty!");
sLog.outString();
return;
}
barGoLink bar(result->GetRowCount());
uint32 count = 0;
do
{
bar.step();
Field *fields = result->Fetch();
std::string message = fields[0].GetString();
@@ -2764,21 +2759,17 @@ void World::LoadWorldStates()
if (!result)
{
barGoLink bar(1);
bar.step();
sLog.outString(">> Loaded 0 world states. DB table `worldstates` is empty!");
sLog.outString();
return;
}
barGoLink bar(result->GetRowCount());
uint32 count = 0;
do
{
Field *fields = result->Fetch();
m_worldstates[fields[0].GetUInt32()] = fields[1].GetUInt64();
bar.step();
++count;
}
while (result->NextRow());