mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Added checks
This commit is contained in:
parent
e4483ab58b
commit
d6c2e1d182
|
|
@ -175,6 +175,9 @@ function GameConnection::onDrop(%client, %reason)
|
|||
// Called in GetTeamCounts
|
||||
function TeamBalanceNotify(%game)
|
||||
{
|
||||
if(!$Host::EnableTeamBalanceNotify && !$Host::EnableAutobalance)
|
||||
return;
|
||||
|
||||
if( Game.numTeams > 1 && $TotalTeamPlayerCount !$= 0 )
|
||||
{
|
||||
//Uneven
|
||||
|
|
@ -228,6 +231,9 @@ function NotifyUnbalanced( %game )
|
|||
if(isEventPending($NotifySchedule))
|
||||
cancel($NotifySchedule);
|
||||
|
||||
if(!$Host::EnableTeamBalanceNotify && !$Host::EnableAutobalance)
|
||||
return;
|
||||
|
||||
if( $TBNStatus !$= "NOTIFY" ) //If Status has changed to EVEN or anything else (GameOver reset).
|
||||
return;
|
||||
|
||||
|
|
@ -360,6 +366,9 @@ function Autobalance( %game )
|
|||
if(isEventPending($AutoBalanceSchedule))
|
||||
cancel($AutoBalanceSchedule);
|
||||
|
||||
if(!$Host::EnableAutobalance)
|
||||
return;
|
||||
|
||||
if($TBNStatus !$= "NOTIFY") //If Status has changed to EVEN or anything else (GameOver reset).
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue