From d91ac014195dea06e42daa7351c9a3844ef34aec Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Fri, 13 Jul 2018 19:31:56 +0200 Subject: MOHAWK: RIVEN: Queue opening and closing the main menu as scripts This way all the other actions are blocked while the card load scripts are executed. Expecially, it's not possible anymore to open the main menu while the scripts for returning from the main menu are still executing. Fixes Trac#10628. --- engines/mohawk/riven_stacks/aspit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mohawk/riven_stacks/aspit.cpp') diff --git a/engines/mohawk/riven_stacks/aspit.cpp b/engines/mohawk/riven_stacks/aspit.cpp index a94b454257..59cc3b9912 100644 --- a/engines/mohawk/riven_stacks/aspit.cpp +++ b/engines/mohawk/riven_stacks/aspit.cpp @@ -424,7 +424,7 @@ void ASpit::xaNewGame(const ArgumentArray &args) { kRivenCommandTransition, 1, kRivenTransitionBlend, kRivenCommandChangeCard, 1, 2); - script->addCommand(RivenCommandPtr(new RivenStackChangeCommand(_vm, 0, 0x6E9A, false))); + script->addCommand(RivenCommandPtr(new RivenStackChangeCommand(_vm, 0, 0x6E9A, false, false))); script += _vm->_scriptMan->createScriptFromData(1, kRivenCommandStopSound, 1, 2); -- cgit v1.2.3