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
@@ -158,7 +158,7 @@ public:
void OnGameObjectCreate(GameObject* go)
{
switch(go->GetEntry())
switch (go->GetEntry())
{
case GO_END_DOOR:
EndDoorGUID = go->GetGUID();
@@ -168,7 +168,7 @@ public:
uint32 GetData(uint32 type)
{
switch(type)
switch (type)
{
case EVENT_PYRAMID:
return PyramidPhase;
@@ -178,7 +178,7 @@ public:
uint64 GetData64(uint32 data)
{
switch(data)
switch (data)
{
case ENTRY_ZUMRAH:
return ZumrahGUID;
@@ -200,7 +200,7 @@ public:
void SetData(uint32 type, uint32 data)
{
switch(type)
switch (type)
{
case EVENT_PYRAMID:
PyramidPhase=data;
@@ -322,7 +322,7 @@ public:
}
bool IsWaveAllDead(){
for(std::list<uint64>::iterator itr = addsAtBase.begin(); itr != addsAtBase.end(); ++itr)
for (std::list<uint64>::iterator itr = addsAtBase.begin(); itr != addsAtBase.end(); ++itr)
{
if (Creature* add = instance->GetCreature((*itr)))
{
@@ -330,7 +330,7 @@ public:
return false;
}
}
for(std::list<uint64>::iterator itr = movedadds.begin(); itr != movedadds.end(); ++itr)
for (std::list<uint64>::iterator itr = movedadds.begin(); itr != movedadds.end(); ++itr)
{
if (Creature* add = instance->GetCreature(((*itr))))
{
@@ -24,7 +24,7 @@ enum zfPyramidPhases
{
PYRAMID_NOT_STARTED, //default
PYRAMID_CAGES_OPEN, //happens in GO hello for cages
PYRAMID_ARRIVED_AT_STAIR , //happens in Weegli's movementinform
PYRAMID_ARRIVED_AT_STAIR, //happens in Weegli's movementinform
PYRAMID_WAVE_1,
PYRAMID_PRE_WAVE_2,
PYRAMID_WAVE_2,