Cosmetic: Multiple cosmetic changes

- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces

Note: Only affects files with extension "cpp" and "h" under /src/server
This commit is contained in:
Spp
2011-09-29 12:43:05 +02:00
parent 8b820baa73
commit b16d2245bb
390 changed files with 1545 additions and 1545 deletions
@@ -173,7 +173,7 @@ public:
void UpdateAI(const uint32 diff)
{
switch(phase)
switch (phase)
{
case PHASE_CHAINED:
if (!anchorGUID)
@@ -247,7 +247,7 @@ public:
while (uint32 eventId = events.ExecuteEvent())
{
switch(eventId)
switch (eventId)
{
case EVENT_ICY_TOUCH:
DoCast(me->getVictim(), SPELL_ICY_TOUCH);
@@ -553,7 +553,7 @@ public:
if (PhaseTimer <= diff)
{
switch(Phase)
switch (Phase)
{
case 0:
me->MonsterSay(SAY_DARK_RIDER, LANG_UNIVERSAL, 0);
@@ -109,7 +109,7 @@ public:
return;
}
switch(uiSpeech_counter)
switch (uiSpeech_counter)
{
case 1: DoScriptText(SAY_PERSUADED1, me); uiSpeech_timer = 8000; break;
case 2: DoScriptText(SAY_PERSUADED2, me); uiSpeech_timer = 8000; break;
@@ -220,7 +220,7 @@ public:
void WaypointReached(uint32 uiPointId)
{
switch(uiPointId)
switch (uiPointId)
{
case 0:
DoScriptText(SAY_BREAKOUT1, me);
@@ -281,7 +281,7 @@ public:
{
if (m_uiWave_Timer <= uiDiff)
{
switch(m_uiWave)
switch (m_uiWave)
{
case 0:
DoScriptText(SAY_BREAKOUT3, me);
@@ -397,7 +397,7 @@ public:
{
if (uiStage_timer <= diff)
{
switch(uiStage)
switch (uiStage)
{
case 1:
me->AddUnitMovementFlag(MOVEMENTFLAG_WALKING);
@@ -610,7 +610,7 @@ public:
bool MeetQuestCondition(Unit* player)
{
switch(me->GetEntry())
switch (me->GetEntry())
{
case 29061: // Ellen Stanbridge
if (CAST_PLR(player)->GetQuestStatus(12742) == QUEST_STATUS_INCOMPLETE)
@@ -682,10 +682,10 @@ public:
//TODO: simplify text's selection
switch(player->getRace())
switch (player->getRace())
{
case RACE_HUMAN:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -713,7 +713,7 @@ public:
}
break;
case RACE_ORC:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -741,7 +741,7 @@ public:
}
break;
case RACE_DWARF:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_2, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -769,7 +769,7 @@ public:
}
break;
case RACE_NIGHTELF:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -797,7 +797,7 @@ public:
}
break;
case RACE_UNDEAD_PLAYER:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -825,7 +825,7 @@ public:
}
break;
case RACE_TAUREN:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -853,7 +853,7 @@ public:
}
break;
case RACE_GNOME:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -881,7 +881,7 @@ public:
}
break;
case RACE_TROLL:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_3, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -909,7 +909,7 @@ public:
}
break;
case RACE_BLOODELF:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -937,7 +937,7 @@ public:
}
break;
case RACE_DRAENEI:
switch(ExecuteSpeech_Counter)
switch (ExecuteSpeech_Counter)
{
case 0: DoScriptText(SAY_EXEC_START_1, me, player); break;
case 1: me->SetStandState(UNIT_STAND_STATE_STAND); break;
@@ -23,7 +23,7 @@
enum mograine
{
#ifdef LESS_MOB
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or -
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest, or -
ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data
ENCOUNTER_DEFENDER_NUMBER = 10, // how many of defender
ENCOUNTER_EARTHSHATTER_NUMBER = 1, // how many of earthshatter
@@ -32,7 +32,7 @@ enum mograine
ENCOUNTER_GHOUL_NUMBER = 5, // how many of ghoul
ENCOUNTER_WARRIOR_NUMBER = 1, // how many of warrior
#else
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest , or -
ENCOUNTER_DK_NUMBER = 5, // how many player queue to start the quest, or -
ENCOUNTER_DK_TIMER = 10, // *every 5 minutes. These have to be done in instance data
ENCOUNTER_DEFENDER_NUMBER = 20, // how many of defender
ENCOUNTER_EARTHSHATTER_NUMBER = 20, // how many of earthshatter
@@ -69,7 +69,7 @@ public:
if (!player)
phase = 3;
switch(phase)
switch (phase)
{
case 0:
me->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);