From 670c302b815f07c8184903d1ff3e019a8cf59af9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 9 Jun 2023 23:00:12 +0200 Subject: [PATCH] Remove 2 redundant bounds --- qcsrc/server/command/vote.qc | 2 -- 1 file changed, 2 deletions(-) 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)); -- 2.39.2