From 3a377a572c9ea8ca08f9763ee89d100843d6e8ad Mon Sep 17 00:00:00 2001 From: Ivaylo Draganov Date: Wed, 6 Jun 2018 01:42:50 +0300 Subject: [PATCH] Add "Restart" button for multiplayer replays --- OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs index cb8f781d12..edec9781ab 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs @@ -97,7 +97,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic var iop = world.WorldActor.TraitsImplementing().FirstOrDefault(); var exitDelay = iop != null ? iop.ExitDelay : 0; - if (world.LobbyInfo.NonBotClients.Count() == 1) + if (world.IsReplay || world.LobbyInfo.NonBotClients.Count() == 1) { restartAction = () => {