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()
|
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;
|
return;
|
||||||
|
|
||||||
Action onSurrender = () =>
|
Action onSurrender = () =>
|
||||||
|
|||||||
Reference in New Issue
Block a user