aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlegrounds/Arena.cpp
diff options
context:
space:
mode:
authorGolrag <golrag.jeremy@gmail.com>2020-04-02 14:38:28 +0200
committerShauren <shauren.trinity@gmail.com>2020-05-02 12:05:30 +0200
commitd7623adf0e6b8c5cdc1e468b89172ed7db63fe92 (patch)
tree35e828e236e712f4ef148fb706da512ef4a84f73 /src/server/game/Battlegrounds/Arena.cpp
parent32950cec210fbd2093dd6c3ad932a02d156d7bf7 (diff)
Core/Battlegrounds: Use the following fields from DB2/battleground_template data in the Battleground Class:
* isArena * name * queueId * min & max players (per team) * map id * script id * start max dist * type id * min & max level * Save the WorldSafeLocsEntry* instead of the Position in the BattlegroundTemplate struct
Diffstat (limited to 'src/server/game/Battlegrounds/Arena.cpp')
-rw-r--r--src/server/game/Battlegrounds/Arena.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Arena.cpp b/src/server/game/Battlegrounds/Arena.cpp
index c642fdc1b62..c1f50c437c0 100644
--- a/src/server/game/Battlegrounds/Arena.cpp
+++ b/src/server/game/Battlegrounds/Arena.cpp
@@ -27,7 +27,7 @@
#include "WorldStatePackets.h"
#include "WorldSession.h"
-Arena::Arena()
+Arena::Arena(BattlegroundTemplate const* battlegroundTemplate) : Battleground(battlegroundTemplate)
{
StartDelayTimes[BG_STARTING_EVENT_FIRST] = BG_START_DELAY_1M;
StartDelayTimes[BG_STARTING_EVENT_SECOND] = BG_START_DELAY_30S;