aboutsummaryrefslogtreecommitdiff
path: root/src/game/PoolHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/PoolHandler.cpp')
-rw-r--r--src/game/PoolHandler.cpp18
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;
}
}