From: z411 Date: Thu, 31 Mar 2022 01:58:09 +0000 (-0300) Subject: Revert "Make vcall restart do a resetmatch instead" X-Git-Tag: xonotic-v0.8.5~117^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=171de0908ca86fcf0d113ac018b1f5aabc553518;p=xonotic%2Fxonotic-data.pk3dir.git Revert "Make vcall restart do a resetmatch instead" This reverts commit 02dcc36e026ecad5a6d8ee74f52bc5403cb35ae6. --- diff --git a/qcsrc/server/command/vote.qc b/qcsrc/server/command/vote.qc index 7ff8d2a13..42d78dd0a 100644 --- a/qcsrc/server/command/vote.qc +++ b/qcsrc/server/command/vote.qc @@ -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;