[10593] Cleaning up code a bit, in related functions for recent commits

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-10-08 22:11:03 +02:00
parent 795c3e1f2f
commit 0caa0e32dd
4 changed files with 42 additions and 43 deletions

View file

@ -7698,7 +7698,7 @@ void ObjectMgr::LoadGameObjectForQuests()
{
mGameObjectForQuestSet.clear(); // need for reload case
if( !sGOStorage.MaxEntry )
if (!sGOStorage.MaxEntry)
{
barGoLink bar( 1 );
bar.step();
@ -7707,7 +7707,7 @@ void ObjectMgr::LoadGameObjectForQuests()
return;
}
barGoLink bar( sGOStorage.MaxEntry - 1 );
barGoLink bar(sGOStorage.MaxEntry - 1);
uint32 count = 0;
// collect GO entries for GO that must activated
@ -7715,7 +7715,7 @@ void ObjectMgr::LoadGameObjectForQuests()
{
bar.step();
GameObjectInfo const* goInfo = sGOStorage.LookupEntry<GameObjectInfo>(go_entry);
if(!goInfo)
if (!goInfo)
continue;
switch(goInfo->type)
@ -7768,7 +7768,7 @@ void ObjectMgr::LoadGameObjectForQuests()
}
case GAMEOBJECT_TYPE_GOOBER:
{
if(goInfo->goober.questId) //quests objects
if (goInfo->goober.questId) //quests objects
{
mGameObjectForQuestSet.insert(go_entry);
count++;