aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Battlefield/BattlefieldWG.cpp
diff options
context:
space:
mode:
authorCarbenium <carbenium@outlook.com>2020-06-22 15:08:50 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-07 00:25:36 +0100
commit366a514462cc3226ebceb61ef9b3fa372788d230 (patch)
treea9e0512725b994bd2196abd8cd2c394fd9ffb81a /src/server/scripts/Battlefield/BattlefieldWG.cpp
parent81a3c135a7ee688998b273034d0ba60dd7bb8158 (diff)
Core/Battlefield: Move SendInitWorldStatesTo to Battlefield class
(cherry picked from commit 488b91ab8307e2d84cc010be488aad693dba34c8)
Diffstat (limited to 'src/server/scripts/Battlefield/BattlefieldWG.cpp')
-rw-r--r--src/server/scripts/Battlefield/BattlefieldWG.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/server/scripts/Battlefield/BattlefieldWG.cpp b/src/server/scripts/Battlefield/BattlefieldWG.cpp
index 0c6ec4624bb..f34deb975e7 100644
--- a/src/server/scripts/Battlefield/BattlefieldWG.cpp
+++ b/src/server/scripts/Battlefield/BattlefieldWG.cpp
@@ -1179,17 +1179,6 @@ void BattlefieldWG::FillInitialWorldStates(WorldPackets::WorldState::InitWorldSt
workshop->FillInitialWorldStates(packet);
}
-void BattlefieldWG::SendInitWorldStatesTo(Player* player)
-{
- WorldPackets::WorldState::InitWorldStates packet;
- packet.MapID = m_MapId;
- packet.AreaID = m_ZoneId;
- packet.SubareaID = player->GetAreaId();
- FillInitialWorldStates(packet);
-
- player->SendDirectMessage(packet.Write());
-}
-
void BattlefieldWG::SendInitWorldStatesToAll()
{
for (uint8 team = 0; team < PVP_TEAMS_COUNT; ++team)