Skip to content

Commit

Permalink
BG: Minor optimizations from wotlk
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 15, 2024
1 parent 8fd5391 commit 7570d1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/BattleGround/BattleGroundHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ void WorldSession::HandleBattlefieldStatusOpcode(WorldPacket& /*recv_data*/)
}
else
{
uint32 avgTime = queueItem.GetAverageQueueWaitTime(&queueInfo, sBattleGroundMgr.GetBattleGroundBracketIdFromLevel(queueInfo.bgTypeId, playerLevel));
uint32 avgTime = queueItem.GetAverageQueueWaitTime(&queueInfo, queueInfo.bgBracketId);
// send status in BattleGround Queue
sBattleGroundMgr.BuildBattleGroundStatusPacket(data, true, queueInfo.bgTypeId, queueInfo.clientInstanceId, queueInfo.isRated, queueInfo.mapId, queueSlot, STATUS_WAIT_QUEUE, avgTime, WorldTimer::getMSTimeDiff(queueInfo.joinTime, WorldTimer::getMSTime()), queueInfo.arenaType, TEAM_NONE);
}
Expand Down Expand Up @@ -919,7 +919,7 @@ void WorldSession::HandleBattlemasterJoinArena(WorldPacket& recv_data)
}
});
}
queue->ScheduleQueueUpdate(arenaRating, arenatype, bgQueueTypeId, bgTypeId, sBattleGroundMgr.GetBattleGroundBracketIdFromLevel(bgTypeId, bgBracketId));
queue->ScheduleQueueUpdate(arenaRating, arenatype, bgQueueTypeId, bgTypeId, bgBracketId);
});
}

Expand Down

0 comments on commit 7570d1c

Please sign in to comment.