Core: Better tracking of quest POI loading (progress bar)
--HG-- branch : trunk
This commit is contained in:
@@ -7072,10 +7072,13 @@ void ObjectMgr::LoadQuestPOI()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::vector<std::vector<QuestPOIPoint> > > POIs;
|
|
||||||
|
|
||||||
// 0 1 2 3
|
// 0 1 2 3
|
||||||
QueryResult points = WorldDatabase.PQuery("SELECT questId, id, x, y FROM quest_poi_points ORDER BY questId DESC, idx");
|
QueryResult points = WorldDatabase.PQuery("SELECT questId, id, x, y FROM quest_poi_points ORDER BY questId DESC, idx");
|
||||||
|
|
||||||
|
barGoLink bar(result->GetRowCount() + (points ? points->GetRowCount() : 0));
|
||||||
|
|
||||||
|
std::vector<std::vector<std::vector<QuestPOIPoint> > > POIs;
|
||||||
|
|
||||||
if (points)
|
if (points)
|
||||||
{
|
{
|
||||||
// The first result should have the highest questId
|
// The first result should have the highest questId
|
||||||
@@ -7085,6 +7088,8 @@ void ObjectMgr::LoadQuestPOI()
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
bar.step();
|
||||||
|
|
||||||
Field *fields = points->Fetch();
|
Field *fields = points->Fetch();
|
||||||
|
|
||||||
uint32 questId = fields[0].GetUInt32();
|
uint32 questId = fields[0].GetUInt32();
|
||||||
@@ -7100,8 +7105,6 @@ void ObjectMgr::LoadQuestPOI()
|
|||||||
} while (points->NextRow());
|
} while (points->NextRow());
|
||||||
}
|
}
|
||||||
|
|
||||||
barGoLink bar(result->GetRowCount());
|
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
Field *fields = result->Fetch();
|
Field *fields = result->Fetch();
|
||||||
|
|||||||
Reference in New Issue
Block a user