Commit 12aef704 authored by Mikleo's avatar Mikleo
Browse files

fix minor bugs

parent 4e120a6a
Pipeline #13904 passed with stages
in 20 seconds
......@@ -5,7 +5,7 @@ int wasTeamBalanced [MAXPLAYERS+1] = {false,...};
void OnPluginStart_SimpleBalance()
{
dp_simplebalance = CreateConVar("dp_simplebalance", "0", "simplebalance players with mmr. ");
dp_simplebalance = CreateConVar("dp_simplebalance", "1", "simplebalance players with mmr. ");
dp_simplebalance_mmrmargin = CreateConVar("dp_simplebalance_mmrmargin", "35", "margin of mmr difference before players are autobalanced");
dp_simplebalance_nocomm = CreateConVar("dp_simplebalance_nocomm", "0", "teambalance on infantry maps");
dp_simplebalance_playerratio = CreateConVar("dp_simplebalance_playerratio", "0.2", "proportion of players in teams before teambalance enabled ");
......
......@@ -8,7 +8,7 @@
#include <empstats>
#include <updater>
#define PluginVersion "1.14"
#define PluginVersion "1.15"
#define UPDATE_URL "https://sourcemod.docs.empiresmod.com/DraftPick/dist/updater.txt"
......@@ -940,6 +940,9 @@ void ExecuteBatchJoin()
for(int j = 0;j<joiningPlayers.Length;j++)
{
int client = joiningPlayers.Get(j);
if(!IsClientInGame(client))
continue;
float distance = FloatAbs(avgmmr - ratings[client]);
if(distance > maxDistance)
{
......@@ -1422,7 +1425,7 @@ int GetVoteLeaders(int numRequired,int &leader1,int &leader2, int &leader1votes,
leader2votes = -1;
for (int i=1; i<=MaxClients; i++)
{
if(IsOptedIn(i))
if(IsClientInGame(i) && IsOptedIn(i))
{
if(votes[i] >leader1votes)
{
......@@ -1898,7 +1901,7 @@ bool CheckPickPlayers()
ChangeStage(STAGE_GAME);
return true;
}
else if (squadIdentities && playersLeft <= squadLimit)
else if (squadIdentities && playersLeft <= (squadLimit + 2))
{
RemoveSquadIdentities();
}
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.14"
"Latest" "1.15"
}
}
......
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