From eb96ca5663dfd89df89396421ef633c409626e9d Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 28 Sep 2019 01:43:58 +1000 Subject: [PATCH] Don't prevent timelimit values at or below 0, instead rely on timelimit_min --- qcsrc/server/command/vote.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 069c0784d3..b611ab2665 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -726,7 +726,7 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa case "timelimit": // include restrictions on the maximum votable time limit { float timelimit_vote = stof(argv(startpos + 1)); - if(timelimit_vote <= 0 || timelimit_vote > autocvar_timelimit_max || timelimit_vote < autocvar_timelimit_min) + if(timelimit_vote > autocvar_timelimit_max || timelimit_vote < autocvar_timelimit_min) { print_to(caller, strcat("Invalid timelimit vote, accepted values are between ", ftos(autocvar_timelimit_min), " and ", ftos(autocvar_timelimit_max), ".")); return -1; -- 2.39.2