diff options
author | Thierry Crozat | 2016-08-03 22:43:44 +0100 |
---|---|---|
committer | Thierry Crozat | 2016-08-03 22:50:06 +0100 |
commit | 191a9a0c641b4d565ecc295f4b8353c15d163248 (patch) | |
tree | a968d8971ec861d60def2ea6f231cf522b87492a /engines/mohawk/riven.cpp | |
parent | 0cccd0ddd1d53b7d16e47a5b2d8ca62c87d992f4 (diff) | |
download | scummvm-rg350-191a9a0c641b4d565ecc295f4b8353c15d163248.tar.gz scummvm-rg350-191a9a0c641b4d565ecc295f4b8353c15d163248.tar.bz2 scummvm-rg350-191a9a0c641b4d565ecc295f4b8353c15d163248.zip |
MOHAWK: Load games from outside the options dialog loop
Loading games from inside the dialog loop may cause cursor
glitches. This commits applies the same fix to the
MohawkOptionsDialog as the one that already existed for
the global main menu. This finished to fix bug #7164.
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index aa168a38d8..b05b76da30 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -258,6 +258,8 @@ void MohawkEngine_Riven::handleEvents() { break; case Common::KEYCODE_F5: runDialog(*_optionsDialog); + if (_optionsDialog->getLoadSlot() >= 0) + loadGameState(_optionsDialog->getLoadSlot()); updateZipMode(); break; case Common::KEYCODE_r: |