mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[8799] Implemented thread safe bg queue updates.
Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
parent
ea7100ff63
commit
ee0fa56166
5 changed files with 187 additions and 206 deletions
|
|
@ -1084,7 +1084,7 @@ void BattleGround::RemovePlayerAtLeave(uint64 guid, bool Transport, bool SendPac
|
|||
{
|
||||
// a player has left the battleground, so there are free slots -> add to queue
|
||||
AddToBGFreeSlotQueue();
|
||||
sBattleGroundMgr.m_BattleGroundQueues[bgQueueTypeId].Update(bgTypeId, GetQueueId());
|
||||
sBattleGroundMgr.ScheduleQueueUpdate(0, 0, bgQueueTypeId, bgTypeId, GetQueueId());
|
||||
}
|
||||
|
||||
// Let others know
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue