Restart round vote now correctly shows round end screen. (#4817)

This commit is contained in:
moonheart08
2021-10-09 13:18:20 -05:00
committed by GitHub
parent 1a635553cb
commit 9f0c3daa65
5 changed files with 42 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Content.Server.GameTicking;
using Content.Server.RoundEnd;
using Content.Shared.CCVar;
using Content.Shared.Voting;
using Robust.Server.Player;
@@ -63,7 +64,7 @@ namespace Content.Server.Voting.Managers
if (votesYes / (float) total >= ratioRequired)
{
_chatManager.DispatchServerAnnouncement(Loc.GetString("ui-vote-restart-succeeded"));
EntitySystem.Get<GameTicker>().RestartRound();
EntitySystem.Get<RoundEndSystem>().EndRound();
}
else
{