]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove 2 redundant bounds
authorterencehill <piuntn@gmail.com>
Fri, 9 Jun 2023 21:00:12 +0000 (23:00 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 9 Jun 2023 21:25:22 +0000 (23:25 +0200)
qcsrc/server/command/vote.qc

index 860794653a8d33b0e311450ed7e97dce3d32efaf..e8a3f6c8dd76bd0ad17f2ed69291daa4ff8c3cb6 100644 (file)
@@ -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));