]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make vcall restart do a resetmatch instead
authorz411 <z411@omaera.org>
Mon, 13 Dec 2021 06:04:17 +0000 (03:04 -0300)
committerz411 <z411@omaera.org>
Mon, 13 Dec 2021 06:04:17 +0000 (03:04 -0300)
qcsrc/server/command/vote.qc

index 00283149adde180dce9752a687551b2d2a4a83bb..b3aa8ca22e9333e3cbbce4256665b69f90c4e12c 100644 (file)
@@ -756,11 +756,10 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa
                }
 
                case "restart":
+               case "resetmatch":  // re-direct all match restarting to resetmatch
                {
-                       // add a delay so that vote result can be seen and announcer can be heard
-                       // if the vote is accepted
-                       vote_parsed_command = strcat("defer 1 ", vote_command);
-                       vote_parsed_display = strzone(strcat("^1", vote_command));
+                       vote_parsed_command = "resetmatch";
+                       vote_parsed_display = strzone("^1resetmatch");
 
                        break;
                }