aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova
diff options
context:
space:
mode:
authorThierry Crozat2019-09-08 16:03:39 +0100
committerThierry Crozat2019-09-08 17:24:58 +0100
commit1b92de67575530b54543e71e7832343c4b1a77da (patch)
tree2160bbb4df8d2b5f5c8df95dd92c2f84063177ff /engines/supernova
parent6f5b13c0d1368f2d8c2dfdb2ea0f217881189ba1 (diff)
downloadscummvm-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.cpp7
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() {