From: Mario Date: Sun, 4 Feb 2018 14:14:47 +0000 (+1000) Subject: Parse and autocomplete nextmap vote X-Git-Tag: xonotic-v0.8.5~2348 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=35d1d671abee3186f08574324a5dc89d68ca1c8e;p=xonotic%2Fxonotic-data.pk3dir.git Parse and autocomplete nextmap vote --- 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;