Merge pull request #10509 from pchote/cancel-pbog-on-menu

Cancel custom input modes when opening the menu.
This commit is contained in:
Oliver Brakmann
2016-01-14 20:29:30 +01:00

View File

@@ -98,7 +98,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var cachedPause = world.PredictedPaused;
if (button.HideIngameUI)
{
// Cancel custom input modes (guard, building placement, etc)
world.CancelInputMode();
worldRoot.IsVisible = () => false;
}
if (button.Pause && world.LobbyInfo.IsSinglePlayer)
world.SetPauseState(true);