From 7755d719e2173fb0d29755e8c1def18c8c8f2d4d Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Sat, 10 Nov 2018 23:10:39 -0500 Subject: [PATCH] Cleaned up code --- Classic/scripts/autoexec/GetTeamCounts.cs | 2 +- Classic/scripts/autoexec/VoteOverTime.cs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Classic/scripts/autoexec/GetTeamCounts.cs b/Classic/scripts/autoexec/GetTeamCounts.cs index 424ab5c..b6605b7 100644 --- a/Classic/scripts/autoexec/GetTeamCounts.cs +++ b/Classic/scripts/autoexec/GetTeamCounts.cs @@ -69,7 +69,7 @@ function GetTeamCounts( %game, %client, %respawn ) //AntiCloak Start ActivateAntiCloak (); - + //Set so counter wont run when it doesnt need to. $GetCountsClientTeamChange = false; } diff --git a/Classic/scripts/autoexec/VoteOverTime.cs b/Classic/scripts/autoexec/VoteOverTime.cs index 32c44d2..15fc9d2 100644 --- a/Classic/scripts/autoexec/VoteOverTime.cs +++ b/Classic/scripts/autoexec/VoteOverTime.cs @@ -22,19 +22,19 @@ function DefaultGame::checkTimeLimit(%game, %forced) { //Vote Overtime //Check if Vote is active or if the timelimit has changed. - if( !$VoteInProgress && !$TimeLimitChanged ) { + if( !$VoteInProgress && !$TimeLimitChanged ) + { // time's up, put down your pencils %game.timeLimitReached(); - - //Reset Everything to do with Vote Overtime - //Moved to function DefaultGame::gameOver in DefaultGame.ovl in evo } - else if( $missionRunning && $VoteInProgress && !$TimeLimitChanged ) { + else if( $missionRunning && $VoteInProgress && !$TimeLimitChanged ) + { //Restart the function so the map can end if the Vote doesnt pass. schedule(2000, 0, "RestartcheckTimeLimit", %game, %forced); //Messege - if( !$VoteInProgressMessege ) { + if( !$VoteInProgressMessege ) + { messageAll('', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav', %display); $VoteInProgressMessege = true; }