diff options
author | Jeremy <Golrag@users.noreply.github.com> | 2023-12-29 14:12:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-29 14:12:15 +0100 |
commit | 1ef0c045202a6af33fb991f2ff765fa183ce976f (patch) | |
tree | 4a2744ed72b4e66935341c4d1ee3b01e5d80f0e1 /src/server/game/Battlegrounds/BattlegroundQueue.h | |
parent | fb64d7fe8efe5ecba40123cdc96195d3ca52d7c0 (diff) |
Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types (#29535)
* Fix criteria data type bg loss team score
Diffstat (limited to 'src/server/game/Battlegrounds/BattlegroundQueue.h')
-rw-r--r-- | src/server/game/Battlegrounds/BattlegroundQueue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundQueue.h b/src/server/game/Battlegrounds/BattlegroundQueue.h index 02eb1da9f60..300d934ddee 100644 --- a/src/server/game/Battlegrounds/BattlegroundQueue.h +++ b/src/server/game/Battlegrounds/BattlegroundQueue.h @@ -38,7 +38,7 @@ struct PlayerQueueInfo // stores informatio struct GroupQueueInfo // stores information about the group in queue (also used when joined as solo!) { std::map<ObjectGuid, PlayerQueueInfo*> Players; // player queue info map - uint32 Team; // Player team (ALLIANCE/HORDE) + ::Team Team; // Player team (ALLIANCE/HORDE) uint32 ArenaTeamId; // team id if rated match uint32 JoinTime; // time when group was added uint32 RemoveInviteTime; // time when we will remove invite for players in group @@ -127,7 +127,7 @@ class TC_GAME_API BattlegroundQueue BattlegroundQueueTypeId m_queueId; - bool InviteGroupToBG(GroupQueueInfo* ginfo, Battleground* bg, uint32 side); + bool InviteGroupToBG(GroupQueueInfo* ginfo, Battleground* bg, Team side); uint32 m_WaitTimes[PVP_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS][COUNT_OF_PLAYERS_TO_AVERAGE_WAIT_TIME]; uint32 m_WaitTimeLastPlayer[PVP_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS]; uint32 m_SumOfWaitTimes[PVP_TEAMS_COUNT][MAX_BATTLEGROUND_BRACKETS]; |