From: terencehill Date: Fri, 9 Jun 2023 21:00:12 +0000 (+0200) Subject: Remove 2 redundant bounds X-Git-Tag: xonotic-v0.8.6~20^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=670c302b815f07c8184903d1ff3e019a8cf59af9;p=xonotic%2Fxonotic-data.pk3dir.git Remove 2 redundant bounds --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 860794653..e8a3f6c8d 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -831,7 +831,6 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa print_to(caller, strcat("Invalid fraglimit vote, accepted values are between ", ftos(fraglimit_min), " and ", ftos(fraglimit_max), ".")); return -1; } - fraglimit_vote = bound(fraglimit_min, fraglimit_vote, fraglimit_max); vote_parsed_command = strcat("fraglimit ", ftos(fraglimit_vote)); vote_parsed_display = strzone(strcat("^1", vote_parsed_command)); @@ -846,7 +845,6 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa print_to(caller, strcat("Invalid timelimit vote, accepted values are between ", ftos(autocvar_timelimit_min), " and ", ftos(autocvar_timelimit_max), ".")); return -1; } - timelimit_vote = bound(autocvar_timelimit_min, timelimit_vote, autocvar_timelimit_max); vote_parsed_command = strcat("timelimit ", ftos(timelimit_vote)); vote_parsed_display = strzone(strcat("^1", vote_parsed_command));