Cleaned up code

This commit is contained in:
ChocoTaco 2018-11-10 23:10:39 -05:00
parent 6c728080ba
commit 7755d719e2
2 changed files with 7 additions and 7 deletions

View file

@ -69,7 +69,7 @@ function GetTeamCounts( %game, %client, %respawn )
//AntiCloak Start //AntiCloak Start
ActivateAntiCloak (); ActivateAntiCloak ();
//Set so counter wont run when it doesnt need to.
$GetCountsClientTeamChange = false; $GetCountsClientTeamChange = false;
} }

View file

@ -22,19 +22,19 @@ function DefaultGame::checkTimeLimit(%game, %forced)
{ {
//Vote Overtime //Vote Overtime
//Check if Vote is active or if the timelimit has changed. //Check if Vote is active or if the timelimit has changed.
if( !$VoteInProgress && !$TimeLimitChanged ) { if( !$VoteInProgress && !$TimeLimitChanged )
{
// time's up, put down your pencils // time's up, put down your pencils
%game.timeLimitReached(); %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. //Restart the function so the map can end if the Vote doesnt pass.
schedule(2000, 0, "RestartcheckTimeLimit", %game, %forced); schedule(2000, 0, "RestartcheckTimeLimit", %game, %forced);
//Messege //Messege
if( !$VoteInProgressMessege ) { if( !$VoteInProgressMessege )
{
messageAll('', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav', %display); messageAll('', '\c2Vote Overtime Initiated.~wfx/powered/turret_heavy_activate.wav', %display);
$VoteInProgressMessege = true; $VoteInProgressMessege = true;
} }