diff options
| author | Spp <none@none> | 2010-04-07 19:12:44 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-04-07 19:12:44 +0200 |
| commit | 182e9a20b107c0d824e8a0bd1cf8f7eceb2b4ce5 (patch) | |
| tree | eaad3fb4d60703db8df6a94a197321c7125f58ef /src/scripts | |
| parent | b27ce42704c33e292bda390265bb8fd01a433505 (diff) | |
Code style (game + scripts only):
"for(" --> "for ("
--HG--
branch : trunk
Diffstat (limited to 'src/scripts')
12 files changed, 17 insertions, 17 deletions
diff --git a/src/scripts/eastern_kingdoms/gnomeregan/gnomeregan.cpp b/src/scripts/eastern_kingdoms/gnomeregan/gnomeregan.cpp index 08ab2c2830c..b4948c2132f 100644 --- a/src/scripts/eastern_kingdoms/gnomeregan/gnomeregan.cpp +++ b/src/scripts/eastern_kingdoms/gnomeregan/gnomeregan.cpp @@ -131,7 +131,7 @@ struct npc_blastmaster_emi_shortfuseAI : public npc_escortAI if (GoSummonList.empty()) return; - for(std::list<uint64>::const_iterator itr = GoSummonList.begin(); itr != GoSummonList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = GoSummonList.begin(); itr != GoSummonList.end(); ++itr) { if (GameObject* pGo = GameObject::GetGameObject(*m_creature, *itr)) { @@ -186,14 +186,14 @@ struct npc_blastmaster_emi_shortfuseAI : public npc_escortAI pInstance->HandleGameObject(NULL,false,pGo); if (!GoSummonList.empty()) - for(std::list<uint64>::const_iterator itr = GoSummonList.begin(); itr != GoSummonList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = GoSummonList.begin(); itr != GoSummonList.end(); ++itr) { if (GameObject* pGo = GameObject::GetGameObject(*m_creature, *itr)) pGo->RemoveFromWorld(); } if (!SummonList.empty()) - for(std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr) { if (Creature* pSummon = Unit::GetCreature(*m_creature, *itr)) { diff --git a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp index dbadd70cb70..934450ea370 100644 --- a/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp +++ b/src/scripts/northrend/azjol_nerub/ahnkahet/boss_herald_volazj.cpp @@ -205,7 +205,7 @@ struct boss_volazjAI : public ScriptedAI Summons.Despawn(summon); // Check if all summons in this phase killed - for(SummonList::const_iterator iter = Summons.begin(); iter!=Summons.end(); ++iter) + for (SummonList::const_iterator iter = Summons.begin(); iter!=Summons.end(); ++iter) { if(Creature *visage = Unit::GetCreature(*m_creature, *iter)) { diff --git a/src/scripts/northrend/borean_tundra.cpp b/src/scripts/northrend/borean_tundra.cpp index 10481a6ecaa..f6075c7404d 100644 --- a/src/scripts/northrend/borean_tundra.cpp +++ b/src/scripts/northrend/borean_tundra.cpp @@ -2185,7 +2185,7 @@ struct npc_seaforium_depth_chargeAI : public ScriptedAI if (uiExplosionTimer < diff) { DoCast(SPELL_SEAFORIUM_DEPTH_CHARGE_EXPLOSION); - for(uint8 i = 0; i < 4; ++i) + for (uint8 i = 0; i < 4; ++i) { if(Creature* cCredit = m_creature->FindNearestCreature(25402 + i, 10.0f))//25402-25405 credit markers { diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp index 3ed4a81d6a3..ca882fc4607 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/boss_black_knight.cpp @@ -131,7 +131,7 @@ struct boss_black_knightAI : public ScriptedAI if (SummonList.empty()) return; - for(std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr) { if (Creature* pTemp = Unit::GetCreature(*m_creature, *itr)) if (pTemp) diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp index edaad389bad..78893ee5eb8 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/instance_trial_of_the_champion.cpp @@ -81,7 +81,7 @@ struct instance_trial_of_the_champion : public ScriptedInstance bool IsEncounterInProgress() const { - for(uint8 i = 0; i < MAX_ENCOUNTER; ++i) + for (uint8 i = 0; i < MAX_ENCOUNTER; ++i) { if (m_auiEncounter[i] == IN_PROGRESS) return true; @@ -171,7 +171,7 @@ struct instance_trial_of_the_champion : public ScriptedInstance m_auiEncounter[0] = uiData; if (uiData == IN_PROGRESS) { - for(std::list<uint64>::const_iterator itr = VehicleList.begin(); itr != VehicleList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = VehicleList.begin(); itr != VehicleList.end(); ++itr) if (Creature* pSummon = instance->GetCreature(*itr)) pSummon->RemoveFromWorld(); }else if (uiData == DONE) diff --git a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp index 6f783bdf09e..c97ea6968c1 100644 --- a/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp +++ b/src/scripts/northrend/crusaders_coliseum/trial_of_the_champion/trial_of_the_champion.cpp @@ -141,7 +141,7 @@ struct npc_announcer_toc5AI : public ScriptedAI break; } - for(std::list<uint64>::const_iterator itr = TempList.begin(); itr != TempList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = TempList.begin(); itr != TempList.end(); ++itr) if (Creature* pSummon = Unit::GetCreature(*m_creature, *itr)) AggroAllPlayers(pSummon); }else if (uiLesserChampions == 9) @@ -416,7 +416,7 @@ struct npc_announcer_toc5AI : public ScriptedAI case 3: if (!Champion1List.empty()) { - for(std::list<uint64>::const_iterator itr = Champion1List.begin(); itr != Champion1List.end(); ++itr) + for (std::list<uint64>::const_iterator itr = Champion1List.begin(); itr != Champion1List.end(); ++itr) if (Creature* pSummon = Unit::GetCreature(*m_creature, *itr)) AggroAllPlayers(pSummon); NextStep(0,false); diff --git a/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp b/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp index 674500584a7..48adc36cfd4 100644 --- a/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp +++ b/src/scripts/northrend/ulduar/ulduar/boss_algalon.cpp @@ -166,7 +166,7 @@ struct boss_algalonAI : public ScriptedAI if (m_lCollapsingStarGUIDList.empty()) return; - for(std::list<uint64>::const_iterator itr = m_lCollapsingStarGUIDList.begin(); itr != m_lCollapsingStarGUIDList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = m_lCollapsingStarGUIDList.begin(); itr != m_lCollapsingStarGUIDList.end(); ++itr) { if (Creature* pTemp = Unit::GetCreature(*m_creature, *itr)) { diff --git a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp index c792b03179b..889bc93050f 100644 --- a/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp +++ b/src/scripts/northrend/utgarde_keep/utgarde_pinnacle/boss_palehoof.cpp @@ -93,7 +93,7 @@ struct boss_palehoofAI : public ScriptedAI m_creature->GetMotionMaster()->MoveTargetedHome(); - for(uint32 i=0;i<4;i++) + for (uint32 i=0;i<4;i++) DoneAdds[i]=false; AddCount=0; @@ -206,7 +206,7 @@ struct boss_palehoofAI : public ScriptedAI { //select random not yet defeated add uint8 next = urand(0,3); - for(uint8 i=0; i < 16; i++) + for (uint8 i=0; i < 16; i++) { if(!DoneAdds[i%4] && next == 0) { diff --git a/src/scripts/northrend/violet_hold/boss_ichoron.cpp b/src/scripts/northrend/violet_hold/boss_ichoron.cpp index 7cc4f983020..dac6743213b 100644 --- a/src/scripts/northrend/violet_hold/boss_ichoron.cpp +++ b/src/scripts/northrend/violet_hold/boss_ichoron.cpp @@ -224,7 +224,7 @@ struct boss_ichoronAI : public ScriptedAI bIsExploded = true; m_creature->AttackStop(); m_creature->SetVisibility(VISIBILITY_OFF); - for(uint8 i = 0; i < 10; i++) + for (uint8 i = 0; i < 10; i++) { int tmp = urand(0, MAX_SPAWN_LOC-1); m_creature->SummonCreature(NPC_ICHOR_GLOBULE, SpawnLoc[tmp], TEMPSUMMON_CORPSE_DESPAWN); diff --git a/src/scripts/northrend/violet_hold/boss_xevozz.cpp b/src/scripts/northrend/violet_hold/boss_xevozz.cpp index 4d29ff592e2..200acba96bc 100644 --- a/src/scripts/northrend/violet_hold/boss_xevozz.cpp +++ b/src/scripts/northrend/violet_hold/boss_xevozz.cpp @@ -100,7 +100,7 @@ struct boss_xevozzAI : public ScriptedAI if (assistList.empty()) return; - for(std::list<Creature*>::const_iterator iter = assistList.begin(); iter != assistList.end(); ++iter) + for (std::list<Creature*>::const_iterator iter = assistList.begin(); iter != assistList.end(); ++iter) { if (Creature* pSphere = *iter) pSphere->Kill(pSphere, false); diff --git a/src/scripts/northrend/zuldrak.cpp b/src/scripts/northrend/zuldrak.cpp index db57b4674e0..a944330b955 100644 --- a/src/scripts/northrend/zuldrak.cpp +++ b/src/scripts/northrend/zuldrak.cpp @@ -279,7 +279,7 @@ struct npc_gurgthockAI : public ScriptedAI m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER); - for(std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr) + for (std::list<uint64>::const_iterator itr = SummonList.begin(); itr != SummonList.end(); ++itr) { if (Creature* pTemp = Unit::GetCreature(*m_creature, *itr)) if (pTemp) diff --git a/src/scripts/outland/netherstorm.cpp b/src/scripts/outland/netherstorm.cpp index 992a4f2dc85..6e339890707 100644 --- a/src/scripts/outland/netherstorm.cpp +++ b/src/scripts/outland/netherstorm.cpp @@ -746,7 +746,7 @@ struct mob_phase_hunterAI : public ScriptedAI std::list<HostileReference*> AggroList = m_creature->getThreatManager().getThreatList(); std::list<Unit*> UnitsWithMana; - for(std::list<HostileReference*>::const_iterator itr = AggroList.begin(); itr != AggroList.end(); ++itr) + for (std::list<HostileReference*>::const_iterator itr = AggroList.begin(); itr != AggroList.end(); ++itr) { if(Unit *pUnit = Unit::GetUnit(*m_creature, (*itr)->getUnitGuid())) { |
