Always prompt the user to confirm when leaving a game

This commit is contained in:
Ivaylo Draganov
2019-06-10 00:41:13 +03:00
committed by Paul Chote
parent 2204e807b8
commit 14bc7885b3

View File

@@ -194,8 +194,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
hideMenu = true;
if (world.LocalPlayer == null || world.LocalPlayer.WinState != WinState.Won)
{
ConfirmationDialogs.ButtonPrompt(
title: "Leave Mission",
text: "Leave this game and return to the menu?",
@@ -203,9 +201,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
onCancel: ShowMenu,
confirmText: "Leave",
cancelText: "Stay");
}
else
OnQuit();
};
}