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:
@@ -592,7 +592,7 @@ public:
|
||||
|
||||
//Get random but only if we have more than one unit on threat list
|
||||
if (temp.size() > 1)
|
||||
advance (j , rand() % (temp.size() - 1));
|
||||
advance (j, rand() % (temp.size() - 1));
|
||||
|
||||
return (*j);
|
||||
}
|
||||
@@ -916,7 +916,7 @@ public:
|
||||
|
||||
void DoAction(const int32 param)
|
||||
{
|
||||
switch(param)
|
||||
switch (param)
|
||||
{
|
||||
case ACTION_FLESH_TENTACLE_KILLED:
|
||||
++FleshTentaclesKilled;
|
||||
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
if (DoGetThreat(target))
|
||||
DoModifyThreatPercent(target, -100);
|
||||
|
||||
switch(urand(0, 2))
|
||||
switch (urand(0, 2))
|
||||
{
|
||||
case 0:
|
||||
DoTeleportPlayer(target, -8106.0142f, 1289.2900f, -74.419533f, 5.112f);
|
||||
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
|
||||
uint32 GetData(uint32 type)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_VEMISDEAD:
|
||||
if (IsBossDied[0])
|
||||
@@ -119,7 +119,7 @@ public:
|
||||
|
||||
uint64 GetData64 (uint32 identifier)
|
||||
{
|
||||
switch(identifier)
|
||||
switch (identifier)
|
||||
{
|
||||
case DATA_SKERAM:
|
||||
return SkeramGUID;
|
||||
@@ -137,7 +137,7 @@ public:
|
||||
|
||||
void SetData(uint32 type, uint32 data)
|
||||
{
|
||||
switch(type)
|
||||
switch (type)
|
||||
{
|
||||
case DATA_VEM_DEATH:
|
||||
IsBossDied[0] = true;
|
||||
|
||||
Reference in New Issue
Block a user