From 978d447d427821d9afec9f503f1ff29387d4f47a Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sat, 22 Sep 2018 16:28:36 +0200 Subject: [PATCH] Disable the restart button on dedicated servers --- 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 47e43e2b31..b882b0f99b 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.LobbyInfo.GlobalSettings.Dedicated && world.LobbyInfo.NonBotClients.Count() == 1) { restartAction = () => {