diff options
author | p0wer <none@none> | 2010-01-01 14:19:29 -0600 |
---|---|---|
committer | p0wer <none@none> | 2010-01-01 14:19:29 -0600 |
commit | 17e4fbd4ad1d80c4c6a6cd2ceed1547f884bb243 (patch) | |
tree | 51190859fcb839c958f481c56ad8b7d4591c8fe6 /src/game/PoolHandler.cpp | |
parent | f497ae3ae07d3a5652bf3d6ddfbfedb2235affc9 (diff) |
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
Diffstat (limited to 'src/game/PoolHandler.cpp')
-rw-r--r-- | src/game/PoolHandler.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/game/PoolHandler.cpp b/src/game/PoolHandler.cpp index da2f432fa40..c2cb8045b81 100644 --- a/src/game/PoolHandler.cpp +++ b/src/game/PoolHandler.cpp @@ -392,12 +392,16 @@ void PoolHandler::LoadFromDB() } while (result->NextRow()); + delete result; + sLog.outString(); sLog.outString( ">> Loaded %u objects pools", count ); - delete result; // 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; } } |