]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/vote.qc
Merge branch 'bones_was_here/subtlebloom' into 'master'
[xonotic/xonotic-data.pk3dir.git] / 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;