mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16: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
|
|
@ -110,7 +110,7 @@ void GameEventMgr::LoadFromDB()
|
|||
}
|
||||
|
||||
QueryResult *result = WorldDatabase.Query("SELECT entry,UNIX_TIMESTAMP(start_time),UNIX_TIMESTAMP(end_time),occurence,length,holiday,description FROM game_event");
|
||||
if( !result )
|
||||
if (!result)
|
||||
{
|
||||
mGameEvent.clear();
|
||||
sLog.outString(">> Table game_event is empty!");
|
||||
|
|
@ -121,7 +121,7 @@ void GameEventMgr::LoadFromDB()
|
|||
uint32 count = 0;
|
||||
|
||||
{
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
++count;
|
||||
|
|
@ -183,9 +183,9 @@ void GameEventMgr::LoadFromDB()
|
|||
"FROM creature JOIN game_event_creature ON creature.guid = game_event_creature.guid");
|
||||
|
||||
count = 0;
|
||||
if( !result )
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
BarGoLink bar(1);
|
||||
bar.step();
|
||||
|
||||
sLog.outString();
|
||||
|
|
@ -194,7 +194,7 @@ void GameEventMgr::LoadFromDB()
|
|||
else
|
||||
{
|
||||
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
|
@ -261,9 +261,9 @@ void GameEventMgr::LoadFromDB()
|
|||
"FROM gameobject JOIN game_event_gameobject ON gameobject.guid=game_event_gameobject.guid");
|
||||
|
||||
count = 0;
|
||||
if( !result )
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
BarGoLink bar(1);
|
||||
bar.step();
|
||||
|
||||
sLog.outString();
|
||||
|
|
@ -272,7 +272,7 @@ void GameEventMgr::LoadFromDB()
|
|||
else
|
||||
{
|
||||
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
|
@ -352,9 +352,9 @@ void GameEventMgr::LoadFromDB()
|
|||
"FROM creature JOIN game_event_creature_data ON creature.guid=game_event_creature_data.guid");
|
||||
|
||||
count = 0;
|
||||
if( !result )
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
BarGoLink bar(1);
|
||||
bar.step();
|
||||
|
||||
sLog.outString();
|
||||
|
|
@ -363,7 +363,7 @@ void GameEventMgr::LoadFromDB()
|
|||
else
|
||||
{
|
||||
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
|
@ -432,9 +432,9 @@ void GameEventMgr::LoadFromDB()
|
|||
result = WorldDatabase.Query("SELECT quest, event FROM game_event_quest");
|
||||
|
||||
count = 0;
|
||||
if( !result )
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
BarGoLink bar(1);
|
||||
bar.step();
|
||||
|
||||
sLog.outString();
|
||||
|
|
@ -443,7 +443,7 @@ void GameEventMgr::LoadFromDB()
|
|||
else
|
||||
{
|
||||
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
|
@ -494,7 +494,7 @@ void GameEventMgr::LoadFromDB()
|
|||
count = 0;
|
||||
if (!result)
|
||||
{
|
||||
barGoLink bar(1);
|
||||
BarGoLink bar(1);
|
||||
bar.step();
|
||||
|
||||
sLog.outString();
|
||||
|
|
@ -503,7 +503,7 @@ void GameEventMgr::LoadFromDB()
|
|||
else
|
||||
{
|
||||
|
||||
barGoLink bar((int)result->GetRowCount());
|
||||
BarGoLink bar(result->GetRowCount());
|
||||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue