mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10593] Cleaning up code a bit, in related functions for recent commits
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
795c3e1f2f
commit
0caa0e32dd
4 changed files with 42 additions and 43 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue