Cancel custom input modes when opening the menu.

This commit is contained in:
Paul Chote
2016-01-13 23:28:51 +00:00
parent 8a755e673c
commit 06678ecc0d

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);