mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 21:57:01 +01:00
Removing ProgressBars as they are performing badly on startup.
[**************************************************] 100% R.I.P --HG-- branch : trunk
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
|
||||
#include "PoolMgr.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "ProgressBar.h"
|
||||
#include "Log.h"
|
||||
#include "MapManager.h"
|
||||
|
||||
@@ -571,13 +570,11 @@ void PoolMgr::LoadFromDB()
|
||||
|
||||
uint32 count = 0;
|
||||
|
||||
barGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
++count;
|
||||
Field *fields = result->Fetch();
|
||||
|
||||
bar.step();
|
||||
|
||||
uint32 pool_id = fields[0].GetUInt32();
|
||||
|
||||
@@ -602,20 +599,16 @@ void PoolMgr::LoadFromDB()
|
||||
count = 0;
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar2(1);
|
||||
bar2.step();
|
||||
sLog.outString(">> Loaded 0 creatures in pools. DB table `pool_creature` is empty.");
|
||||
sLog.outString();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
barGoLink bar2(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
||||
bar2.step();
|
||||
|
||||
uint32 guid = fields[0].GetUInt32();
|
||||
uint32 pool_id = fields[1].GetUInt32();
|
||||
@@ -666,20 +659,16 @@ void PoolMgr::LoadFromDB()
|
||||
count = 0;
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar2(1);
|
||||
bar2.step();
|
||||
sLog.outString(">> Loaded 0 gameobjects in pools. DB table `pool_gameobject` is empty.");
|
||||
sLog.outString();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
barGoLink bar2(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
||||
bar2.step();
|
||||
|
||||
uint32 guid = fields[0].GetUInt32();
|
||||
uint32 pool_id = fields[1].GetUInt32();
|
||||
@@ -738,20 +727,16 @@ void PoolMgr::LoadFromDB()
|
||||
count = 0;
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar2(1);
|
||||
bar2.step();
|
||||
sLog.outString(">> Loaded 0 pools in pools");
|
||||
sLog.outString();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
barGoLink bar2(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
||||
bar2.step();
|
||||
|
||||
uint32 child_pool_id = fields[0].GetUInt32();
|
||||
uint32 mother_pool_id = fields[1].GetUInt32();
|
||||
@@ -832,14 +817,11 @@ void PoolMgr::LoadQuestPools()
|
||||
uint32 count = 0;
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
bar.step();
|
||||
sLog.outString(">> Loaded 0 quests in pools");
|
||||
sLog.outString();
|
||||
return;
|
||||
}
|
||||
|
||||
barGoLink bar(result->GetRowCount());
|
||||
PooledQuestRelationBounds creBounds;
|
||||
PooledQuestRelationBounds goBounds;
|
||||
|
||||
@@ -854,7 +836,6 @@ void PoolMgr::LoadQuestPools()
|
||||
|
||||
do
|
||||
{
|
||||
bar.step();
|
||||
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user