From e20a46316588c161d7bd0d92c39e93e4339bc567 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 17 Jan 2018 18:05:24 -0500 Subject: XEEN: Fix display of text in bottom screen dialogs --- engines/xeen/scripts.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index 46485a543b..e597cf7dbc 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1840,10 +1840,17 @@ void Scripts::display(bool justifyFlag, int var46) { w.open(); while (!_vm->shouldQuit()) { - _displayMessage = w.writeString(_displayMessage); + const char *newPos = w.writeString(_displayMessage); w.update(); + + // Check for end of message + if (!newPos) + break; + _displayMessage = Common::String(newPos); if (_displayMessage.empty()) break; + + // Wait for click events.clearEvents(); do { -- cgit v1.2.3