Fixed some errors from analyzer

This commit is contained in:
hondacrx
2017-06-22 17:02:27 -04:00
parent 0e40e90a11
commit d538acc979
26 changed files with 38 additions and 46 deletions
+2 -2
View File
@@ -162,8 +162,8 @@ namespace Game.Arenas
if (winner != 0)
{
winnerMatchmakerChange = winnerArenaTeam.WonAgainst(winnerMatchmakerRating, loserMatchmakerRating, winnerChange);
loserMatchmakerChange = loserArenaTeam.LostAgainst(loserMatchmakerRating, winnerMatchmakerRating, loserChange);
winnerMatchmakerChange = winnerArenaTeam.WonAgainst(winnerMatchmakerRating, loserMatchmakerRating, ref winnerChange);
loserMatchmakerChange = loserArenaTeam.LostAgainst(loserMatchmakerRating, winnerMatchmakerRating, ref loserChange);
Log.outDebug(LogFilter.Arena, "match Type: {0} --- Winner: old rating: {1}, rating gain: {2}, old MMR: {3}, MMR gain: {4} --- Loser: old rating: {5}, " +
"rating loss: {6}, old MMR: {7}, MMR loss: {8} ---", GetArenaType(), winnerTeamRating, winnerChange, winnerMatchmakerRating, winnerMatchmakerChange,
+2 -2
View File
@@ -588,7 +588,7 @@ namespace Game.Arenas
}
}
public int WonAgainst(uint ownMMRating, uint opponentMMRating, int ratingChange)
public int WonAgainst(uint ownMMRating, uint opponentMMRating, ref int ratingChange)
{
// Called when the team has won
// Change in Matchmaker rating
@@ -608,7 +608,7 @@ namespace Game.Arenas
return mod;
}
public int LostAgainst(uint ownMMRating, uint opponentMMRating, int ratingChange)
public int LostAgainst(uint ownMMRating, uint opponentMMRating, ref int ratingChange)
{
// Called when the team has lost
// Change in Matchmaker Rating