mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[11590] Cleanups for barGoLink
* Rename barGoLink -> BarGoLink as expected by mangos code style * Add uint32/uint6 constructor versions for BarGoLink, and remove lot casts required before for BarGoLink use
This commit is contained in:
parent
6b8f9fe03d
commit
c870ef324d
26 changed files with 430 additions and 410 deletions
|
|
@ -702,7 +702,7 @@ void MapPersistentStateManager::_DelHelper(DatabaseType &db, const char *fields,
|
|||
|
||||
void MapPersistentStateManager::CleanupInstances()
|
||||
{
|
||||
barGoLink bar(2);
|
||||
BarGoLink bar(2);
|
||||
bar.step();
|
||||
|
||||
// load reset times and clean expired instances
|
||||
|
|
@ -754,7 +754,7 @@ void MapPersistentStateManager::PackInstances()
|
|||
delete result;
|
||||
}
|
||||
|
||||
barGoLink bar( InstanceSet.size() + 1);
|
||||
BarGoLink bar(InstanceSet.size() + 1);
|
||||
bar.step();
|
||||
|
||||
uint32 InstanceNumber = 1;
|
||||
|
|
@ -917,9 +917,9 @@ void MapPersistentStateManager::LoadCreatureRespawnTimes()
|
|||
uint32 count = 0;
|
||||
|
||||
QueryResult *result = CharacterDatabase.Query("SELECT guid, respawntime, map, instance, difficulty, resettime FROM creature_respawn LEFT JOIN instance ON instance = id");
|
||||
if(!result)
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
BarGoLink bar(1);
|
||||
|
||||
bar.step();
|
||||
|
||||
|
|
@ -928,7 +928,7 @@ void MapPersistentStateManager::LoadCreatureRespawnTimes()
|
|||
return;
|
||||
}
|
||||
|
||||
barGoLink bar((int)result->GetRowCount());
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
|
||||
do
|
||||
{
|
||||
|
|
@ -982,9 +982,9 @@ void MapPersistentStateManager::LoadGameobjectRespawnTimes()
|
|||
|
||||
QueryResult *result = CharacterDatabase.Query("SELECT guid, respawntime, map, instance, difficulty, resettime FROM gameobject_respawn LEFT JOIN instance ON instance = id");
|
||||
|
||||
if(!result)
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
BarGoLink bar(1);
|
||||
|
||||
bar.step();
|
||||
|
||||
|
|
@ -993,7 +993,7 @@ void MapPersistentStateManager::LoadGameobjectRespawnTimes()
|
|||
return;
|
||||
}
|
||||
|
||||
barGoLink bar((int)result->GetRowCount());
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
|
||||
do
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue