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:
1 parent
8b820baa73
commit
b16d2245bb
390 files changed
+1545
-1545
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user