From c3aa660dfd267d7b8272148cb8b9bc4a1d3eb664 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Fri, 24 Jul 2020 01:36:58 -0400 Subject: [PATCH] Update VoteMenu.cs Cant vote a time lower than the Host::TimeLimit --- Classic/scripts/autoexec/VoteMenu.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index aeca655..2236503 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -318,6 +318,9 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % messageClient(%client, "", "\c2Switching to this time wouldn't affect the time limit at all."); return; } + + if(%arg1 < $Host::TimeLimit) + return; if((!%isAdmin && $Host::AllowPlayerVoteTimeLimit) || (%isAdmin && %client.ForceVote)) {