From 1e2d292eb4c9e2dc8a5b209d7d2e726e15f43ce9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 12 Feb 2016 11:43:44 +0100 Subject: [PATCH] WAGE: Finally fix input text behavior --- engines/wage/wage.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 12f42629650f..5ea1e3b31419 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -172,6 +172,7 @@ void WageEngine::processEvents() { processTurn(&_inputText, NULL); _inputText = ""; + _gui->appendText(""); break; default: @@ -208,14 +209,10 @@ void WageEngine::setMenu(Common::String menu) { } void WageEngine::appendText(const char *str) { - if (_inputText.size()) { - _inputText += '\n'; - _gui->drawInput(); + _gui->appendText(str); + if (_inputText.size()) _inputText = ""; - } - - _gui->appendText(str); } void WageEngine::gameOver() {