Disable the restart button on dedicated servers

This commit is contained in:
abcdefg30
2018-09-22 16:28:36 +02:00
committed by Paul Chote
parent 92e8fbf4d0
commit 978d447d42

View File

@@ -97,7 +97,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var iop = world.WorldActor.TraitsImplementing<IObjectivesPanel>().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 = () =>
{