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:
@@ -92,7 +92,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 17381:
|
||||
The_MakerGUID = creature->GetGUID();
|
||||
@@ -141,7 +141,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
|
||||
uint64 GetData64(uint32 data)
|
||||
{
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case DATA_THE_MAKER: return The_MakerGUID;
|
||||
case DATA_BROGGOK: return BroggokGUID;
|
||||
@@ -167,7 +167,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
|
||||
void SetData(uint32 /*type*/, uint32 data)
|
||||
{
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case TYPE_THE_MAKER_EVENT: m_auiEncounter[0] = data; break;
|
||||
case TYPE_BROGGOK_EVENT: m_auiEncounter[1] = data; break;
|
||||
@@ -190,7 +190,7 @@ class instance_blood_furnace : public InstanceMapScript
|
||||
|
||||
uint32 GetData(uint32 data)
|
||||
{
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case TYPE_THE_MAKER_EVENT: return m_auiEncounter[0];
|
||||
case TYPE_BROGGOK_EVENT: return m_auiEncounter[1];
|
||||
|
||||
+1
-1
@@ -397,7 +397,7 @@ class boss_vazruden_the_herald : public CreatureScript
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
{
|
||||
switch(phase)
|
||||
switch (phase)
|
||||
{
|
||||
case 0: // circle around the platform
|
||||
return;
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ class instance_ramparts : public InstanceMapScript
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case 185168:
|
||||
m_uiChestNGUID = go->GetGUID();
|
||||
@@ -68,7 +68,7 @@ class instance_ramparts : public InstanceMapScript
|
||||
{
|
||||
sLog->outDebug(LOG_FILTER_TSCR, "TSCR: Instance Ramparts: SetData received for type %u with data %u", uiType, uiData);
|
||||
|
||||
switch(uiType)
|
||||
switch (uiType)
|
||||
{
|
||||
case TYPE_VAZRUDEN:
|
||||
if (uiData == DONE && m_auiEncounter[1] == DONE && !spawned)
|
||||
|
||||
+5
-5
@@ -86,7 +86,7 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 17257:
|
||||
MagtheridonGUID = creature->GetGUID();
|
||||
@@ -99,7 +99,7 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case 181713:
|
||||
go->SetUInt32Value(GAMEOBJECT_FLAGS, 0);
|
||||
@@ -121,7 +121,7 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
|
||||
uint64 GetData64(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_MAGTHERIDON:
|
||||
return MagtheridonGUID;
|
||||
@@ -131,7 +131,7 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_MAGTHERIDON_EVENT:
|
||||
m_auiEncounter[0] = data;
|
||||
@@ -141,7 +141,7 @@ class instance_magtheridons_lair : public InstanceMapScript
|
||||
HandleGameObject(DoorGUID, true);
|
||||
break;
|
||||
case DATA_CHANNELER_EVENT:
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case NOT_STARTED: // Reset all channelers once one is reset.
|
||||
if (m_auiEncounter[1] != NOT_STARTED)
|
||||
|
||||
+1
-1
@@ -281,7 +281,7 @@ class boss_warbringer_omrogg : public CreatureScript
|
||||
|
||||
Unit* source = (pLeftHead->GetEntry() == Killing[ikilling].creature ? pLeftHead : pRightHead);
|
||||
|
||||
switch(ikilling)
|
||||
switch (ikilling)
|
||||
{
|
||||
case 0:
|
||||
DoScriptText(Killing[ikilling].id, source);
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ class boss_warchief_kargath_bladefist : public CreatureScript
|
||||
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
switch(summoned->GetEntry())
|
||||
switch (summoned->GetEntry())
|
||||
{
|
||||
case MOB_HEARTHEN_GUARD:
|
||||
case MOB_SHARPSHOOTER_GUARD:
|
||||
|
||||
+5
-5
@@ -55,7 +55,7 @@ class instance_shattered_halls : public InstanceMapScript
|
||||
|
||||
void OnGameObjectCreate(GameObject* go)
|
||||
{
|
||||
switch(go->GetEntry())
|
||||
switch (go->GetEntry())
|
||||
{
|
||||
case DOOR_NETHEKURSE:
|
||||
nethekurseDoorGUID = go->GetGUID();
|
||||
@@ -65,7 +65,7 @@ class instance_shattered_halls : public InstanceMapScript
|
||||
|
||||
void OnCreatureCreate(Creature* creature)
|
||||
{
|
||||
switch(creature->GetEntry())
|
||||
switch (creature->GetEntry())
|
||||
{
|
||||
case 16807:
|
||||
nethekurseGUID = creature->GetGUID();
|
||||
@@ -75,7 +75,7 @@ class instance_shattered_halls : public InstanceMapScript
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_NETHEKURSE:
|
||||
m_auiEncounter[0] = data;
|
||||
@@ -88,7 +88,7 @@ class instance_shattered_halls : public InstanceMapScript
|
||||
|
||||
uint32 GetData(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case TYPE_NETHEKURSE:
|
||||
return m_auiEncounter[0];
|
||||
@@ -100,7 +100,7 @@ class instance_shattered_halls : public InstanceMapScript
|
||||
|
||||
uint64 GetData64(uint32 data)
|
||||
{
|
||||
switch(data)
|
||||
switch (data)
|
||||
{
|
||||
case DATA_NETHEKURSE:
|
||||
return nethekurseGUID;
|
||||
|
||||
Reference in New Issue
Block a user