From e9c003f30648936e58253dca2e72173757d2ff80 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 31 Oct 2014 19:44:45 -0400 Subject: ACCESS: Fix display of paged text in doEstablish calls --- engines/access/amazon/amazon_game.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'engines/access/amazon/amazon_game.cpp') diff --git a/engines/access/amazon/amazon_game.cpp b/engines/access/amazon/amazon_game.cpp index 66b77d66d2..187b38c497 100644 --- a/engines/access/amazon/amazon_game.cpp +++ b/engines/access/amazon/amazon_game.cpp @@ -282,17 +282,12 @@ void AmazonEngine::doEstablish(int screenId, int estabIndex) { uint16 msgOffset = READ_LE_UINT16(_eseg->data() + (estabIndex * 2) + 2); _printEnd = 155; + Common::String msg((const char *)_eseg->data() + msgOffset); + if (_txtPages == 0) { - Common::String msg((const char *)_eseg->data() + msgOffset); printText(_screen, msg); } else { - Common::Array msgArr; - for (int i = 0; i < _txtPages; ++i) { - Common::String msg((const char *)_eseg->data() + msgOffset); - msgOffset += msg.size() + 1; - msgArr.push_back(msg); - } - speakText(_screen, msgArr); + speakText(_screen, msg); } _screen->forceFadeOut(); -- cgit v1.2.3