From 7bf600013b5001d22a01f985b4671278fa27abe8 Mon Sep 17 00:00:00 2001 From: Aokromes Date: Mon, 22 Aug 2016 21:40:17 +0200 Subject: [PATCH] Core/TolBarad: Remove whitespaces --- .../game/Battlefield/Zones/BattlefieldTB.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/server/game/Battlefield/Zones/BattlefieldTB.cpp b/src/server/game/Battlefield/Zones/BattlefieldTB.cpp index 360098eec2d..4a43fea9570 100644 --- a/src/server/game/Battlefield/Zones/BattlefieldTB.cpp +++ b/src/server/game/Battlefield/Zones/BattlefieldTB.cpp @@ -79,14 +79,14 @@ bool BattlefieldTB::SetupBattlefield() // Set timer m_Timer = sWorld->getWorldState(TB_WS_TIME_NEXT_BATTLE); - + // Defending team isn't set yet? Choose randomly. if (sWorld->getWorldState(TB_WS_FACTION_CONTROLLING) == 0) sWorld->setWorldState(TB_WS_FACTION_CONTROLLING, uint64(urand(1, 2))); // Set defender team SetDefenderTeam(TeamId(sWorld->getWorldState(TB_WS_FACTION_CONTROLLING) - 1)); - + // Just to save world states SendInitWorldStatesToAll(); @@ -103,7 +103,7 @@ bool BattlefieldTB::SetupBattlefield() } AddCapturePoint(capturePoint); } - + // Spawn towers for (uint8 i = 0; i < TB_TOWERS_COUNT; i++) if (GameObject* go = SpawnGameObject(TBTowers[i].entry, TBTowers[i].x, TBTowers[i].y, TBTowers[i].z, TBTowers[i].o)) @@ -132,7 +132,7 @@ bool BattlefieldTB::SetupBattlefield() warnedFiveMinutes = false; warnedTwoMinutes = false; warnedOneMinute = false; - + UpdateNPCsAndGameObjects(); return true; @@ -163,7 +163,7 @@ bool BattlefieldTB::Update(uint32 diff) SendWarning(TB_TEXT_PREPARATIONS_IN_1_MIN); } } - + if (!updatedNPCAndObjects) { if (m_updateObjectsTimer <= diff) @@ -473,7 +473,7 @@ void BattlefieldTB::UpdateNPCsAndGameObjects() if (GameObject* gameobject = GetGameObject(guid)) gameobject->Delete(); TemporaryGOs.clear(); - + // Tol Barad gates - closed during warmup if (GameObject* gates = GetGameObject(TBGatesGUID)) gates->SetGoState(GetState() == BATTLEFIELD_WARMUP ? GO_STATE_READY : GO_STATE_ACTIVE); @@ -533,7 +533,7 @@ void BattlefieldTB::UpdateNPCsAndGameObjects() if (Creature* creature = SpawnCreature(entry, TBQuestInfantrySpawnData[i], GetDefenderTeam())) TemporaryNPCs.insert(creature->GetGUID()); } - + for (uint8 i = 0; i < TB_GUARDS_MAX; i++) if (Creature* creature = SpawnCreature(GetDefenderTeam() == TEAM_ALLIANCE ? NPC_BARADIN_GUARD : NPC_HELLSCREAMS_SENTRY, GuardNPCSpawns[i], GetDefenderTeam())) TemporaryNPCs.insert(creature->GetGUID());