Code style (game + scripts only):

"while(" --> "while ("

--HG--
branch : trunk
This commit is contained in:
Spp
2010-04-07 19:13:19 +02:00
parent 182e9a20b1
commit 2e127f7a30
74 changed files with 230 additions and 230 deletions
@@ -149,7 +149,7 @@ struct boss_moroesAI : public ScriptedAI
for (uint8 i = 0; i < 6; ++i)
AddList.push_back(Adds[i]);
while(AddList.size() > 4)
while (AddList.size() > 4)
AddList.erase((AddList.begin())+(rand()%AddList.size()));
uint8 i = 0;
@@ -190,7 +190,7 @@ struct boss_aranAI : public ScriptedAI
}
//cut down to size if we have more than 3 targets
while(targets.size() > 3)
while (targets.size() > 3)
targets.erase(targets.begin()+rand()%targets.size());
uint32 i = 0;
@@ -168,7 +168,7 @@ struct boss_priestess_delrissaAI : public ScriptedAI
LackeyEntryList[i] = m_auiAddEntries[i];
//remove random entries
while(LackeyEntryList.size() > MAX_ACTIVE_LACKEY)
while (LackeyEntryList.size() > MAX_ACTIVE_LACKEY)
LackeyEntryList.erase(LackeyEntryList.begin() + rand()%LackeyEntryList.size());
//summon all the remaining in vector
@@ -259,7 +259,7 @@ void npc_unworthy_initiateAI::UpdateAI(const uint32 diff)
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -302,7 +302,7 @@ struct boss_hex_lord_malacrassAI : public ScriptedAI
for (uint8 i = 0; i < 8; ++i)
AddList.push_back(AddEntryList[i]);
while(AddList.size() > 4)
while (AddList.size() > 4)
AddList.erase(AddList.begin()+rand()%AddList.size());
uint8 i = 0;
@@ -322,7 +322,7 @@ struct npc_announcer_toc5AI : public ScriptedAI
{
uiFirstBoss = urand(0,4);
while(uiSecondBoss == uiFirstBoss || uiThirdBoss == uiFirstBoss || uiThirdBoss == uiSecondBoss)
while (uiSecondBoss == uiFirstBoss || uiThirdBoss == uiFirstBoss || uiThirdBoss == uiSecondBoss)
{
uiSecondBoss = urand(0,4);
uiThirdBoss = urand(0,4);
@@ -169,7 +169,7 @@ struct boss_garfrostAI : public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -151,7 +151,7 @@ struct boss_tyrannusAI : public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -216,7 +216,7 @@ struct boss_rimefangAI : public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -177,7 +177,7 @@ struct mob_ymirjar_wrathbringerAI : public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -223,7 +223,7 @@ struct mob_ymirjar_skyCallerAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -273,7 +273,7 @@ struct mob_ymirjar_flamebearerAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -328,7 +328,7 @@ struct mob_ymirjar_deathbringerAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -375,7 +375,7 @@ struct mob_wrathbone_laborerAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -430,7 +430,7 @@ struct mob_wrathbone_coldwraithAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -480,7 +480,7 @@ struct mob_stonespine_gargoyleAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -531,7 +531,7 @@ struct mob_plagueborn_horrorAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -584,7 +584,7 @@ struct mob_iceborn_protodrakeAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -628,7 +628,7 @@ struct mob_hungering_ghoulAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -674,7 +674,7 @@ struct mob_fallen_warriorAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -727,7 +727,7 @@ struct mob_deathwhisper_torturerAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -777,7 +777,7 @@ struct mob_deathwhisper_shadowcasterAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -823,7 +823,7 @@ struct mob_deathwhisper_necrolyteAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -873,7 +873,7 @@ struct mob_wrathbone_sorcererAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -919,7 +919,7 @@ struct mob_geist_ambusherAI: public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -124,7 +124,7 @@ struct boss_anubrekhanAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -123,7 +123,7 @@ struct boss_faerlinaAI : public BossAI
if (me->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -324,7 +324,7 @@ struct boss_four_horsemenAI : public BossAI
if (me->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -108,7 +108,7 @@ struct boss_gluthAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -388,7 +388,7 @@ struct boss_gothikAI : public BossAI
if (me->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -64,7 +64,7 @@ struct boss_grobbulusAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -98,7 +98,7 @@ struct boss_heiganAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -377,7 +377,7 @@ struct boss_kelthuzadAI : public BossAI
if (Phase == 1)
{
while(uint32 eventId = events.GetEvent())
while (uint32 eventId = events.GetEvent())
{
switch(eventId)
{
@@ -56,7 +56,7 @@ struct boss_loathebAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -87,7 +87,7 @@ struct boss_maexxnaAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -136,7 +136,7 @@ struct boss_nothAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -101,7 +101,7 @@ struct boss_patchwerkAI : public BossAI
EncounterTime += diff;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -96,7 +96,7 @@ struct boss_razuviousAI : public BossAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -233,7 +233,7 @@ struct boss_sapphironAI : public BossAI
if (phase == PHASE_GROUND)
{
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -218,7 +218,7 @@ struct boss_thaddiusAI : public BossAI
if (me->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -219,7 +219,7 @@ struct boss_steelbreakerAI : public ScriptedAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -329,7 +329,7 @@ struct boss_runemaster_molgeimAI : public ScriptedAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -499,7 +499,7 @@ struct boss_stormcaller_brundirAI : public ScriptedAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -104,7 +104,7 @@ struct boss_archavonAI : public ScriptedAI
if (me->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -167,7 +167,7 @@ struct mob_archavon_warderAI : public ScriptedAI //npc 32353
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -111,7 +111,7 @@ struct boss_emalonAI : public BossAI
if (me->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -229,7 +229,7 @@ struct mob_tempest_minionAI : public ScriptedAI
}
}
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -115,7 +115,7 @@ struct boss_koralonAI : public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -174,7 +174,7 @@ struct mob_flame_warderAI : public ScriptedAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -104,7 +104,7 @@ struct boss_toravonAI : public ScriptedAI
if (m_creature->hasUnitState(UNIT_STAT_CASTING))
return;
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -157,7 +157,7 @@ struct mob_frost_warderAI : public ScriptedAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -202,7 +202,7 @@ struct boss_shahrazAI : public ScriptedAI
++BeamCount;
uint32 Beam = CurrentBeam;
if (BeamCount > 3)
while(CurrentBeam == Beam)
while (CurrentBeam == Beam)
CurrentBeam = rand()%3;
} else BeamTimer -= diff;
@@ -174,7 +174,7 @@ struct boss_supremusAI : public ScriptedAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -140,7 +140,7 @@ struct boss_najentusAI : public ScriptedAI
events.Update(diff);
while(uint32 eventId = events.ExecuteEvent())
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
{
@@ -665,7 +665,7 @@ struct boss_fathomguard_caribdisAI : public ScriptedAI
// It can be cast on any of the mobs
Unit *pUnit = NULL;
while(pUnit == NULL || !pUnit->isAlive())
while (pUnit == NULL || !pUnit->isAlive())
{
pUnit = selectAdvisorUnit();
}
@@ -235,7 +235,7 @@ struct boss_morogrim_tidewalkerAI : public ScriptedAI
if (pTarget)
itr = list.find(pTarget->GetGUID());
++counter;
} while(itr != list.end());
} while (itr != list.end());
if (pTarget)
{