aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGroundMgr.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-24 19:34:56 -0500
committermegamage <none@none>2009-08-24 19:34:56 -0500
commit19bfa37ec6e63252df1dea09a2560a18eaef17f3 (patch)
tree72d90fdde40ababb4545596667123d8d5f551849 /src/game/BattleGroundMgr.h
parent785577e170a9791a324cac85a1fe682872249d1b (diff)
[8405] Fixed possible crash in BGQueueRemoveEvent::Execute() when two paralell BattleGroundQueue Updates are called, optimalized code.
Signed-off-by: Triply <triply@getmangos.com> --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGroundMgr.h')
-rw-r--r--src/game/BattleGroundMgr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/BattleGroundMgr.h b/src/game/BattleGroundMgr.h
index 9c38fea1ad4..dbf68dc1d31 100644
--- a/src/game/BattleGroundMgr.h
+++ b/src/game/BattleGroundMgr.h
@@ -220,6 +220,7 @@ class BattleGroundMgr
BGFreeSlotQueueType BGFreeSlotQueue[MAX_BATTLEGROUND_TYPE_ID];
+ void ScheduleQueueUpdate(BattleGroundQueueTypeId bgQueueTypeId, BattleGroundTypeId bgTypeId, BGQueueIdBasedOnLevel queue_id);
uint32 GetMaxRatingDifference() const;
uint32 GetRatingDiscardTimer() const;
uint32 GetPrematureFinishTime() const;
@@ -252,6 +253,7 @@ class BattleGroundMgr
/* Battlegrounds */
BattleGroundSet m_BattleGrounds[MAX_BATTLEGROUND_TYPE_ID];
+ std::vector<uint32>m_QueueUpdateScheduler;
std::set<uint32> m_ClientBattleGroundIds[MAX_BATTLEGROUND_TYPE_ID][MAX_BATTLEGROUND_QUEUES]; //the instanceids just visible for the client
uint32 m_NextRatingDiscardUpdate;
time_t m_NextAutoDistributionTime;