Core/Battlegrounds: Don't send SOTA transports removal twice
This commit is contained in:
@@ -60,11 +60,9 @@ bool BattlegroundSA::SetupBattleground()
|
|||||||
|
|
||||||
bool BattlegroundSA::ResetObjs()
|
bool BattlegroundSA::ResetObjs()
|
||||||
{
|
{
|
||||||
|
for (BattlegroundPlayerMap::const_iterator itr = GetPlayers().begin(); itr != GetPlayers().end(); ++itr)
|
||||||
for (int i = BG_SA_BOAT_ONE; i <= BG_SA_BOAT_TWO; i++)
|
if (Player *plr = ObjectAccessor::FindPlayer(itr->first))
|
||||||
for (BattlegroundPlayerMap::const_iterator itr = GetPlayers().begin(); itr != GetPlayers().end(); ++itr)
|
SendTransportsRemove(plr);
|
||||||
if (Player *plr = ObjectAccessor::FindPlayer(itr->first))
|
|
||||||
SendTransportsRemove(plr);
|
|
||||||
|
|
||||||
uint32 atF = BG_SA_Factions[Attackers];
|
uint32 atF = BG_SA_Factions[Attackers];
|
||||||
uint32 defF = BG_SA_Factions[Attackers ? TEAM_ALLIANCE : TEAM_HORDE];
|
uint32 defF = BG_SA_Factions[Attackers ? TEAM_ALLIANCE : TEAM_HORDE];
|
||||||
|
|||||||
Reference in New Issue
Block a user