diff --git a/Classic/scripts/autoexec/VoteOverTime.cs b/Classic/scripts/autoexec/VoteOverTime.cs index 87a52c8..314beb2 100644 --- a/Classic/scripts/autoexec/VoteOverTime.cs +++ b/Classic/scripts/autoexec/VoteOverTime.cs @@ -3,7 +3,7 @@ // Dont allow the match to end if a time vote is pending // Or if the timelimit has changed // -// Changes were also made in the Evo Admin.ovl and DefaultGame.ovl +// Changes were also made in how time votes are handled in scripts/autoexec/VoteMenu.cs // DefaultGame::voteChangeMission, DefaultGame::voteChangeTimeLimit, serverCmdStartNewVote // // The VoteChangeTimeLimit functions in evo dictate VOStatus conditions @@ -25,7 +25,7 @@ function DefaultGame::checkTimeLimit(%game, %forced) %game.timeCheck = %game.schedule(20000, "checkTimeLimit"); return; } - + %curTimeLeftMS = ($Host::TimeLimit * 60 * 1000) + $missionStartTime - getSimTime(); if (%curTimeLeftMS <= 0) @@ -43,9 +43,9 @@ function DefaultGame::checkTimeLimit(%game, %forced) } case InProgress: //Do Nothing - case TimeChanged: + case TimeChanged: //Do Nothing - case Normal: + case Normal: // time's up, put down your pencils %game.timeLimitReached(); } @@ -65,7 +65,7 @@ function DefaultGame::checkTimeLimit(%game, %forced) function DefaultGame::gameOver(%game) { Parent::gameOver(%game); - + //Reset everything to do with Vote Overtime ResetVOall(%game); } @@ -95,4 +95,4 @@ function ResetVOall(%game) // Prevent package from being activated if it is already if (!isActivePackage(VoteOverTime)) - activatePackage(VoteOverTime); \ No newline at end of file + activatePackage(VoteOverTime);