Skip to content

Commit

Permalink
Disable the restart button on dedicated servers
Browse files Browse the repository at this point in the history
  • Loading branch information
abcdefg30 authored and pchote committed Sep 22, 2018
1 parent 92e8fbf commit 978d447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs
Expand Up @@ -97,7 +97,7 @@ public IngameMenuLogic(Widget widget, ModData modData, World world, Action onExi
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 = () =>
{
Expand Down

0 comments on commit 978d447

Please sign in to comment.