mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Fixed a bug
Fixed a bug where the notification would go off between getcounts intervals even if someone switched, particularly at the last second.
This commit is contained in:
parent
8cab43f29b
commit
42ffe4602a
|
|
@ -82,11 +82,14 @@ function ResetTeamBalanceNotifyGameOver( %game )
|
|||
function StatsUnbalanceSound()
|
||||
{
|
||||
if( $Team1Difference >= 2 || $Team2Difference >= 2 )
|
||||
{
|
||||
if( !$GetCountsClientTeamChange )
|
||||
{
|
||||
messageAll('MsgTeamBalanceNotify', '\c1Teams are unbalanced: \c0It is currently %1 vs %2 with %3 observers.~wfx/misc/bounty_objrem2.wav', $PlayerCount[1], $PlayerCount[2], $PlayerCount[0] );
|
||||
//Called in 30 secs with sound
|
||||
schedule(30000, 0, "StatsUnbalanceSound");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$StatsBalancedSoundPlayed = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue