diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-07-15 23:29:46 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-07-15 23:29:46 +0200 |
commit | 06010c11b138752e475c59a594b42d4e9a7241bd (patch) | |
tree | f23509831766bb6eacd469fb19261cf0fb8a52df /src/server/game/Battlegrounds/Battleground.cpp | |
parent | ed93a9706842ff5419279d4b2c473943e6ef2549 (diff) |
Core/PacketIO: Fixed structure of SMSG_START_TIMER
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.cpp')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index 1bcb8964dfd..1e84e026689 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -44,7 +44,6 @@ #include "Transport.h" #include "Util.h" #include "WorldStateMgr.h" -#include "WorldStatePackets.h" #include <cstdarg> template<class Do> @@ -418,7 +417,7 @@ inline void Battleground::_ProcessJoin(uint32 diff) Seconds countdownMaxForBGType = Seconds(isArena() ? ARENA_COUNTDOWN_MAX : BATTLEGROUND_COUNTDOWN_MAX); WorldPackets::Misc::StartTimer startTimer; - startTimer.Type = 0; + startTimer.Type = WorldPackets::Misc::StartTimer::Pvp; startTimer.TimeLeft = std::chrono::duration_cast<Seconds>(countdownMaxForBGType - Milliseconds(GetElapsedTime())); startTimer.TotalTime = countdownMaxForBGType; @@ -1119,7 +1118,7 @@ void Battleground::AddPlayer(Player* player) Seconds countdownMaxForBGType = Seconds(isArena() ? ARENA_COUNTDOWN_MAX : BATTLEGROUND_COUNTDOWN_MAX); WorldPackets::Misc::StartTimer startTimer; - startTimer.Type = 0; + startTimer.Type = WorldPackets::Misc::StartTimer::Pvp; startTimer.TimeLeft = std::chrono::duration_cast<Seconds>(countdownMaxForBGType - Milliseconds(GetElapsedTime())); startTimer.TotalTime = countdownMaxForBGType; player->SendDirectMessage(startTimer.Write()); |