From 3d1b4c250906f2de8bf4479d232f8012ff39c82b Mon Sep 17 00:00:00 2001 From: Ivaylo Draganov Date: Wed, 11 Dec 2019 02:49:39 +0200 Subject: [PATCH] Remove "Surrender" button for single player games --- 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 f0ba4e9882..72e5ec5672 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Ingame/IngameMenuLogic.cs @@ -242,7 +242,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic void CreateSurrenderButton() { - if (world.Type != WorldType.Regular || world.Map.Visibility.HasFlag(MapVisibility.MissionSelector) || world.LocalPlayer == null) + if (world.Type != WorldType.Regular || isSinglePlayer || world.LocalPlayer == null) return; Action onSurrender = () =>