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
@@ -771,7 +771,7 @@ public:
return 0;
}
switch(Step)
switch (Step)
{
case 0: return 0; break;
case 1: me->GetMotionMaster()->MovePoint(0, -5104.41f, 595.297f, 85.6838f); return 9000; break;
@@ -950,7 +950,7 @@ public:
if (!player)
return;
switch(uiPointId)
switch (uiPointId)
{
case 13:
DoScriptText(SAY_WIL_PROGRESS1, me, player);
@@ -1215,7 +1215,7 @@ public:
AnimationTimer = TorlothAnim[AnimationCount].Timer;
switch(AnimationCount)
switch (AnimationCount)
{
case 0:
me->SetUInt32Value(UNIT_FIELD_BYTES_1, 8);
@@ -1295,7 +1295,7 @@ public:
void JustDied(Unit* slayer)
{
if (slayer)
switch(slayer->GetTypeId())
switch (slayer->GetTypeId())
{
case TYPEID_UNIT:
if (Unit* owner = slayer->GetOwner())
@@ -1749,7 +1749,7 @@ public:
uint32 entry = 0;
uint32 credit = 0;
switch(me->GetEntry()) {
switch (me->GetEntry()) {
case ENTRY_ENRAGED_FIRE_SPIRIT:
entry = ENTRY_FIERY_SOUL;
//credit = SPELL_FIERY_SOUL_CAPTURED_CREDIT;