Add "Restart" button for multiplayer replays

This commit is contained in:
Ivaylo Draganov
2018-06-06 01:42:50 +03:00
committed by reaperrr
parent fc82c24e1f
commit 3a377a572c

View File

@@ -97,7 +97,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var iop = world.WorldActor.TraitsImplementing<IObjectivesPanel>().FirstOrDefault(); var iop = world.WorldActor.TraitsImplementing<IObjectivesPanel>().FirstOrDefault();
var exitDelay = iop != null ? iop.ExitDelay : 0; var exitDelay = iop != null ? iop.ExitDelay : 0;
if (world.LobbyInfo.NonBotClients.Count() == 1) if (world.IsReplay || world.LobbyInfo.NonBotClients.Count() == 1)
{ {
restartAction = () => restartAction = () =>
{ {