Merge pull request #10509 from pchote/cancel-pbog-on-menu
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;
|
var cachedPause = world.PredictedPaused;
|
||||||
|
|
||||||
if (button.HideIngameUI)
|
if (button.HideIngameUI)
|
||||||
|
{
|
||||||
|
// Cancel custom input modes (guard, building placement, etc)
|
||||||
|
world.CancelInputMode();
|
||||||
|
|
||||||
worldRoot.IsVisible = () => false;
|
worldRoot.IsVisible = () => false;
|
||||||
|
}
|
||||||
|
|
||||||
if (button.Pause && world.LobbyInfo.IsSinglePlayer)
|
if (button.Pause && world.LobbyInfo.IsSinglePlayer)
|
||||||
world.SetPauseState(true);
|
world.SetPauseState(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user