Remove "Surrender" button for single player games
This commit is contained in:
committed by
Paul Chote
parent
14bc7885b3
commit
3d1b4c2509
@@ -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 = () =>
|
||||
|
||||
Reference in New Issue
Block a user