From: Mario Date: Fri, 27 Sep 2019 15:43:58 +0000 (+1000) Subject: Don't prevent timelimit values at or below 0, instead rely on timelimit_min X-Git-Tag: xonotic-v0.8.5~1262 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eb96ca5663dfd89df89396421ef633c409626e9d;p=xonotic%2Fxonotic-data.pk3dir.git Don't prevent timelimit values at or below 0, instead rely on timelimit_min --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 069c0784d..b611ab266 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;