Skip to content
Permalink
Browse files

SUPERNOVA: Fix setting game speed with number keys in improved mode

  • Loading branch information...
criezy committed Sep 8, 2019
1 parent 6f5b13c commit 1b92de67575530b54543e71e7832343c4b1a77da
Showing with 7 additions and 0 deletions.
  1. +7 −0 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() {

0 comments on commit 1b92de6

Please sign in to comment.
You can’t perform that action at this time.