Update VoteMenu.cs

Cant vote a time lower than the Host::TimeLimit
This commit is contained in:
ChocoTaco1 2020-07-24 01:36:58 -04:00
parent 8a0e3d6a65
commit c3aa660dfd

View file

@ -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))
{