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
@@ -105,14 +105,14 @@ class instance_uldaman : public InstanceMapScript
case GO_ALTAR_OF_THE_KEEPER_TEMPLE_DOOR: // lock the door
uiAltarOfTheKeeperTempleDoor = go->GetGUID();
if(m_auiEncounter[0] == DONE)
if (m_auiEncounter[0] == DONE)
HandleGameObject(0, true, go);
break;
case GO_ARCHAEDAS_TEMPLE_DOOR:
uiArchaedasTempleDoor = go->GetGUID();
if(m_auiEncounter[0] == DONE)
if (m_auiEncounter[0] == DONE)
HandleGameObject(0, true, go);
break;
@@ -121,7 +121,7 @@ class instance_uldaman : public InstanceMapScript
go->SetUInt32Value(GAMEOBJECT_FLAGS, 33);
uiAncientVaultDoor = go->GetGUID();
if(m_auiEncounter[1] == DONE)
if (m_auiEncounter[1] == DONE)
HandleGameObject(0, true, go);
break;
@@ -165,7 +165,7 @@ class instance_uldaman : public InstanceMapScript
void BlockGO(uint64 guid)
{
GameObject* go = instance->GetGameObject(guid);
if(!go)
if (!go)
return;
go->SetUInt32Value(GAMEOBJECT_FLAGS, GO_FLAG_INTERACT_COND);
@@ -255,7 +255,7 @@ class instance_uldaman : public InstanceMapScript
void ActivateIronaya()
{
Creature* ironaya = instance->GetCreature(uiIronayaGUID);
if(!ironaya)
if (!ironaya)
return;
ironaya->setFaction(415);
@@ -306,7 +306,7 @@ class instance_uldaman : public InstanceMapScript
if (!bKeystoneCheck)
return;
if(uiIronayaSealDoorTimer <= diff)
if (uiIronayaSealDoorTimer <= diff)
{
ActivateIronaya();
@@ -322,17 +322,17 @@ class instance_uldaman : public InstanceMapScript
void SetData (uint32 type, uint32 data)
{
switch(type)
switch (type)
{
case DATA_ALTAR_DOORS:
m_auiEncounter[0] = data;
if(data == DONE)
if (data == DONE)
SetDoor(uiAltarOfTheKeeperTempleDoor, true);
break;
case DATA_ANCIENT_DOOR:
m_auiEncounter[1] = data;
if(data == DONE) //archeadas defeat
if (data == DONE) //archeadas defeat
{
SetDoor(uiArchaedasTempleDoor, true); //re open enter door
SetDoor(uiAncientVaultDoor, true);
@@ -348,7 +348,7 @@ class instance_uldaman : public InstanceMapScript
break;
case DATA_MINIONS:
switch(data)
switch (data)
{
case NOT_STARTED:
if (m_auiEncounter[0] == DONE) //if players opened the doors
@@ -446,7 +446,7 @@ class instance_uldaman : public InstanceMapScript
case 7228: // Ironaya
uiIronayaGUID = creature->GetGUID();
if(m_auiEncounter[2] != DONE)
if (m_auiEncounter[2] != DONE)
SetFrozenState (creature);
break;