From 1b92de67575530b54543e71e7832343c4b1a77da Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 8 Sep 2019 16:03:39 +0100 Subject: SUPERNOVA: Fix setting game speed with number keys in improved mode --- engines/supernova/supernova.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines') 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() { -- cgit v1.2.3