Commit 1fc724b3 authored by Mikleo's avatar Mikleo
Browse files

--

parent 015e101e
Pipeline #6110 passed with stages
in 17 seconds
......@@ -38,6 +38,13 @@ public Action CheckTeamBalance(int client,int currentTeam,int clientTeam)
numplayers[0] = GetTeamClientCount(2);
numplayers[1] = GetTeamClientCount(3);
if(currentTeam == 2)
numplayers[0] --;
else if(currentTeam == 3)
numplayers[1] --;
if(numplayers[0] > numplayers[1])
{
......@@ -137,7 +144,7 @@ public Action CheckTeamBalance(int client,int currentTeam,int clientTeam)
// if there are less players than our playerratio or in a non classic map dont autobalance here
if(!wasTeamBalanced[client] && playerRatio > dp_simplebalance_playerratio.FloatValue && (EU_IsClassicMap() || dp_simplebalance_nocomm.IntValue != 0))
if(!wasTeamBalanced[client] && currentTeam < 2 && playerRatio > dp_simplebalance_playerratio.FloatValue && (EU_IsClassicMap() || dp_simplebalance_nocomm.IntValue != 0))
{
int t = clientTeam -2;
......
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "0.89"
#define PluginVersion "0.90"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "0.89"
"Latest" "0.90"
}
}
......
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