diff options
author | Carbenium <carbenium@outlook.com> | 2020-06-22 15:08:50 +0200 |
---|---|---|
committer | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-06-24 15:09:57 +0200 |
commit | 488b91ab8307e2d84cc010be488aad693dba34c8 (patch) | |
tree | fa88b13f765bb6fef101f849e2893bd6b3c0747b /src/server/scripts/Battlefield/BattlefieldWG.cpp | |
parent | c40b897d369cf45696ca626fdf48bf51226a73a8 (diff) |
Core/Battlefield: Move SendInitWorldStatesTo to Battlefield class
Diffstat (limited to 'src/server/scripts/Battlefield/BattlefieldWG.cpp')
-rw-r--r-- | src/server/scripts/Battlefield/BattlefieldWG.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/server/scripts/Battlefield/BattlefieldWG.cpp b/src/server/scripts/Battlefield/BattlefieldWG.cpp index 230f2f6fbcb..94b8287504e 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.ZoneID = m_ZoneId; - packet.AreaID = player->GetAreaId(); - FillInitialWorldStates(packet); - - player->SendDirectMessage(packet.Write()); -} - void BattlefieldWG::SendInitWorldStatesToAll() { for (uint8 team = 0; team < PVP_TEAMS_COUNT; ++team) |