]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Parse and autocomplete nextmap vote
authorMario <mario@smbclan.net>
Sun, 4 Feb 2018 14:14:47 +0000 (00:14 +1000)
committerMario <mario@smbclan.net>
Sun, 4 Feb 2018 14:14:47 +0000 (00:14 +1000)
qcsrc/server/command/vote.qc

index 1a826c6f142daf0164d83a7a27f59b37c09d9820..1645a706b2e866941ec8c76981517dff7649c204 100644 (file)
@@ -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;