mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
Core/TolBarad: Remove whitespaces
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user