From 35d1d671abee3186f08574324a5dc89d68ca1c8e Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 5 Feb 2018 00:14:47 +1000 Subject: [PATCH] Parse and autocomplete nextmap vote --- qcsrc/server/command/vote.qc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 1a826c6f1..1645a706b 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -698,6 +698,16 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa break; } + case "nextmap": + { + vote_command = ValidateMap(argv(startpos + 1), caller); + if (!vote_command) return -1; + vote_parsed_command = strcat("nextmap ", vote_command); + vote_parsed_display = strzone(strcat("^1", vote_parsed_command)); + + break; + } + default: { vote_parsed_command = vote_command; -- 2.39.2