]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert "Make vcall restart do a resetmatch instead"
authorz411 <z411@omaera.org>
Thu, 31 Mar 2022 01:58:09 +0000 (22:58 -0300)
committerz411 <z411@omaera.org>
Thu, 31 Mar 2022 01:58:09 +0000 (22:58 -0300)
This reverts commit 02dcc36e026ecad5a6d8ee74f52bc5403cb35ae6.

qcsrc/server/command/vote.qc

index 7ff8d2a133e16abd24425031214f7f11201c35aa..42d78dd0ac29dae5653e216bc227920eb4669f05 100644 (file)
@@ -761,11 +761,11 @@ int VoteCommand_parse(entity caller, string vote_command, string vote_list, floa
                        break;
                }
 
-               case "restart": // re-direct all match restarting to resetmatch
-                       vote_command = "resetmatch"; // fall-through
-               case "resetmatch":
+               case "restart":
                {
-                       vote_parsed_command = vote_command;
+                       // 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));
 
                        break;