Merge pull request #11456 from obrakmann/disable-singleplayer-by-default-for-dedicateds

Disable single-player games by default on dedicated servers
This commit is contained in:
abcdefg30
2016-06-22 22:28:37 +02:00
committed by GitHub
7 changed files with 16 additions and 16 deletions

View File

@@ -317,7 +317,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
startGameButton.IsDisabled = () => configurationDisabled() || Map.Status != MapStatus.Available ||
orderManager.LobbyInfo.Slots.Any(sl => sl.Value.Required && orderManager.LobbyInfo.ClientInSlot(sl.Key) == null) ||
(orderManager.LobbyInfo.GlobalSettings.DisableSingleplayer && orderManager.LobbyInfo.IsSinglePlayer);
(!orderManager.LobbyInfo.GlobalSettings.EnableSingleplayer && orderManager.LobbyInfo.IsSinglePlayer);
startGameButton.OnClick = () =>
{