From a99891c2f3189bcc2b9357a9d42a848afb48693b Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 20 Aug 2017 09:56:55 +0200 Subject: MOHAWK: Riven: Pause the engine while the load dialog is open --- engines/mohawk/riven.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index c7f8d1c3d9..ea3e2ce7ec 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -510,7 +510,10 @@ void MohawkEngine_Riven::delay(uint32 ms) { void MohawkEngine_Riven::runLoadDialog() { GUI::SaveLoadChooser slc(_("Load game:"), _("Load"), false); + pauseEngine(true); int slot = slc.runModalWithCurrentTarget(); + pauseEngine(false); + if (slot >= 0) { loadGameStateAndDisplayError(slot); } -- cgit v1.2.3