More Cleanups

This commit is contained in:
hondacrx
2021-06-08 12:56:09 -04:00
parent 302a1f293c
commit 52e43853fe
58 changed files with 223 additions and 257 deletions
@@ -2088,12 +2088,10 @@ namespace Game.BattleGrounds
// Arena team ids by team
uint[] m_ArenaTeamIds = new uint[SharedConst.BGTeamsCount];
int[] m_ArenaTeamRatingChanges = new int[SharedConst.BGTeamsCount];
uint[] m_ArenaTeamMMR = new uint[SharedConst.BGTeamsCount];
// Start location
BattlegroundMap m_Map;
Position[] StartPosition = new Position[SharedConst.BGTeamsCount];
BattlegroundTemplate _battlegroundTemplate;
PvpDifficultyRecord _pvpDifficultyEntry;
@@ -194,7 +194,7 @@ namespace Game.BattleGrounds
m_SumOfWaitTimes[team_index][(int)bracket_id] += timeInQueue;
//set index of last player added to next one
lastPlayerAddedPointer++;
lastPlayerAddedPointer %= SharedConst.CountOfPlayersToAverageWaitTime;
m_WaitTimeLastPlayer[team_index][(int)bracket_id] = lastPlayerAddedPointer % SharedConst.CountOfPlayersToAverageWaitTime;
}
public uint GetAverageQueueWaitTime(GroupQueueInfo ginfo, BattlegroundBracketId bracket_id)