diff options
author | Thierry Crozat | 2019-09-08 16:03:39 +0100 |
---|---|---|
committer | Thierry Crozat | 2019-09-08 17:24:58 +0100 |
commit | 1b92de67575530b54543e71e7832343c4b1a77da (patch) | |
tree | 2160bbb4df8d2b5f5c8df95dd92c2f84063177ff /engines/supernova | |
parent | 6f5b13c0d1368f2d8c2dfdb2ea0f217881189ba1 (diff) | |
download | scummvm-rg350-1b92de67575530b54543e71e7832343c4b1a77da.tar.gz scummvm-rg350-1b92de67575530b54543e71e7832343c4b1a77da.tar.bz2 scummvm-rg350-1b92de67575530b54543e71e7832343c4b1a77da.zip |
SUPERNOVA: Fix setting game speed with number keys in improved mode
Diffstat (limited to 'engines/supernova')
-rw-r--r-- | engines/supernova/supernova.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 8a7210720d..c79a6a26dd 100644 --- a/engines/supernova/supernova.cpp +++ b/engines/supernova/supernova.cpp @@ -357,6 +357,11 @@ void SupernovaEngine::setTextSpeed() { int boxWidth = stringWidth > 110 ? stringWidth : 110; int boxHeight = 27; + // Disable improved mode temporarilly so that Key 1-5 are received below + // instead of being mapped to action selection. + bool hasImprovedMode = _improved; + _improved = false; + _gm->animationOff(); _gm->saveTime(); saveScreen(boxX, boxY, boxWidth, boxHeight); @@ -398,6 +403,8 @@ void SupernovaEngine::setTextSpeed() { restoreScreen(); _gm->loadTime(); _gm->animationOn(); + + _improved = hasImprovedMode; } void SupernovaEngine::showHelpScreen1() { |