Make the core boot alot cleaner. Fix some formating. Make custom attributes for spells show a bar and how much they are loading.

Overall fix 99% of display issues while core is booting.

--HG--
branch : trunk
This commit is contained in:
p0wer
2010-01-01 14:19:29 -06:00
parent f497ae3ae0
commit 17e4fbd4ad
10 changed files with 285 additions and 134 deletions

View File

@@ -392,12 +392,16 @@ void PoolHandler::LoadFromDB()
} while (result->NextRow());
sLog.outString();
sLog.outString( ">> Loaded %u objects pools", count );
delete result;
sLog.outString();
sLog.outString( ">> Loaded %u objects pools", count );
// Creatures
sLog.outString();
sLog.outString( "Loading Creatures Pooling Data..." );
mPoolCreatureGroups.resize(max_pool_id + 1);
mCreatureSearchMap.clear();
// 1 2 3
@@ -459,6 +463,8 @@ void PoolHandler::LoadFromDB()
// Gameobjects
sLog.outString( "Loading Gameobject Pooling Data..." );
mPoolGameobjectGroups.resize(max_pool_id + 1);
mGameobjectSearchMap.clear();
// 1 2 3
@@ -528,12 +534,15 @@ void PoolHandler::LoadFromDB()
}
// Pool of pools
sLog.outString( "Loading Mother Pooling Data..." );
mPoolPoolGroups.resize(max_pool_id + 1);
// 1 2 3
// 1 2 3
result = WorldDatabase.Query("SELECT pool_id, mother_pool, chance FROM pool_pool");
count = 0;
if( !result )
if (!result)
{
barGoLink bar2(1);
bar2.step();
@@ -610,9 +619,10 @@ void PoolHandler::LoadFromDB()
}
}
}
delete result;
sLog.outString();
sLog.outString( ">> Loaded %u pools in mother pools", count );
delete result;
}
}