Commit a606db96 authored by Mikleo's avatar Mikleo
Browse files

--

parent 91e1e50c
Pipeline #6143 passed with stages
in 18 seconds
......@@ -83,9 +83,9 @@ public Action CheckTeamBalance(int client,int currentTeam,int clientTeam)
// only use main ratings for matchmaking, not ranked
ES_GetStats("rating",ratings);
float totalmmr[3] = {0.0,0.0,0.0};
int mmrcount[3] = {0,0,0};
float averagemmr[3] = {0.0,0.0,0.0};
float totalmmr[2] = {0.0,0.0};
int mmrcount[2] = {0,0};
float averagemmr[2] = {0.0,0.0};
for (int i=1; i<=MaxClients; i++)
{
// ignore the client searching.
......@@ -102,11 +102,10 @@ public Action CheckTeamBalance(int client,int currentTeam,int clientTeam)
totalmmr[1] += ratings[i];
mmrcount[1] ++;
}
totalmmr[2]++;
}
}
for(int j = 0;j<3;j++)
for(int j = 0;j<2;j++)
{
if(mmrcount[j] > 0)
{
......@@ -119,7 +118,7 @@ public Action CheckTeamBalance(int client,int currentTeam,int clientTeam)
int margin = dp_simplebalance_mmrmargin.IntValue;
float avgmmr = averagemmr[2];
float avgmmr = (averagemmr[0] + averagemmr[1]) /2;
// if autoassign assign a team based on mmr.
......
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "0.91"
#define PluginVersion "0.92"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "0.91"
"Latest" "0.92"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment