From dbe7f30f9302855936b29182c061cd271ff199f9 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Tue, 17 Nov 2020 23:01:23 +0100 Subject: [PATCH] TWINE: reduced scope --- engines/twine/text.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/engines/twine/text.cpp b/engines/twine/text.cpp index 7cc7d013fb8..f99dd03889d 100644 --- a/engines/twine/text.cpp +++ b/engines/twine/text.cpp @@ -303,9 +303,8 @@ void Text::initInventoryDialogueBox() { // SecondInitDialWindow // TODO: refactor this code void Text::initText(int32 index) { - printTextVar13 = 0; - if (!getText(index)) { + printTextVar13 = 0; return; } @@ -777,14 +776,13 @@ void Text::textClipSmall() { // newGame4 } void Text::drawAskQuestion(int32 index) { - int32 textStatus = 1; - // get right VOX entry index initVoxToPlay(index); initText(index); initDialogueBox(); + int32 textStatus = 1; do { _engine->readKeys(); textStatus = printText10();