]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make voting use it too
authorSamual <samual@xonotic.org>
Thu, 29 Dec 2011 02:37:36 +0000 (21:37 -0500)
committerSamual <samual@xonotic.org>
Thu, 29 Dec 2011 02:37:36 +0000 (21:37 -0500)
qcsrc/server/command/vote.qc

index bf636a3877893a8d7ea4d7587fab07cfe636c167..ab047fecf1483ffa200ad6b0cebb61ffe694c96e 100644 (file)
@@ -539,7 +539,7 @@ float VoteCommand_parse(entity caller, string vote_command, string vote_list, fl
                case "kick":
                case "kickban": // catch all kick/kickban commands
                {
-                       victim = GetFilteredEntity(argv(startpos + 1));
+                       victim = GetIndexedEntity(argc, (startpos + 1));
                        if not(victim) { return FALSE; }
                        // TODO: figure out how kick/kickban/ban commands work and re-write this to fit around them
                        vote_parsed_command = vote_command;