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:
1 parent
8b820baa73
commit
b16d2245bb
390 files changed
+1545
-1545
No files matched your search
@@ -371,10 +371,10 @@ public:
|
||||
bRemoveFlag = true;
|
||||
me->RemoveFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
|
||||
|
||||
switch(uiId)
|
||||
switch (uiId)
|
||||
{
|
||||
case 1:
|
||||
switch(uiValue)
|
||||
switch (uiValue)
|
||||
{
|
||||
case QUEST_AMPHITHEATER_ANGUISH_TUSKARRMAGEDDON:
|
||||
DoScriptText(SAY_QUEST_ACCEPT_TUSKARRMAGEDON, me);
|
||||
@@ -425,7 +425,7 @@ public:
|
||||
|
||||
if (uiTimer <= uiDiff)
|
||||
{
|
||||
switch(uiPhase)
|
||||
switch (uiPhase)
|
||||
{
|
||||
case 1:
|
||||
if (Creature* summon = me->SummonCreature(NPC_ORINOKO_TUSKBREAKER, SpawnPosition[0], TEMPSUMMON_CORPSE_DESPAWN, 1000))
|
||||
@@ -656,7 +656,7 @@ public:
|
||||
|
||||
if (!bSummoned && !HealthAbovePct(50))
|
||||
{
|
||||
DoScriptText(SAY_CALL_FOR_HELP , me);
|
||||
DoScriptText(SAY_CALL_FOR_HELP, me);
|
||||
//DoCast(me->getVictim(), SPELL_SUMMON_WHISKER); petai is not working correctly???
|
||||
|
||||
if (Creature* pWhisker = me->SummonCreature(NPC_WHISKER, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 0))
|
||||
@@ -669,7 +669,7 @@ public:
|
||||
|
||||
void JustSummoned(Creature* summon)
|
||||
{
|
||||
switch(summon->GetEntry())
|
||||
switch (summon->GetEntry())
|
||||
{
|
||||
case NPC_WHISKER:
|
||||
summon->AI()->AttackStart(me->getVictim());
|
||||
@@ -743,7 +743,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiI)
|
||||
{
|
||||
switch(uiI)
|
||||
switch (uiI)
|
||||
{
|
||||
case 6:
|
||||
me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0);
|
||||
@@ -937,7 +937,7 @@ public:
|
||||
|
||||
void WaypointReached(uint32 uiI)
|
||||
{
|
||||
switch(uiI)
|
||||
switch (uiI)
|
||||
{
|
||||
case 7:
|
||||
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
|
||||
@@ -1316,7 +1316,7 @@ public:
|
||||
{
|
||||
if (m_uiTimer <= uiDiff)
|
||||
{
|
||||
switch(m_uiPhase)
|
||||
switch (m_uiPhase)
|
||||
{
|
||||
case 1:
|
||||
// say random text
|
||||
|
||||
Reference in new issue
Block a user