Cancel custom input modes when opening the menu.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user