aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlegrounds/Battleground.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-07-15 23:29:46 +0200
committerShauren <shauren.trinity@gmail.com>2022-07-15 23:29:46 +0200
commit06010c11b138752e475c59a594b42d4e9a7241bd (patch)
treef23509831766bb6eacd469fb19261cf0fb8a52df /src/server/game/Battlegrounds/Battleground.cpp
parented93a9706842ff5419279d4b2c473943e6ef2549 (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.cpp5
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());