diff options
author | Eugene Sandulenko | 2016-02-12 11:43:44 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:13:05 +0100 |
commit | 1e2d292eb4c9e2dc8a5b209d7d2e726e15f43ce9 (patch) | |
tree | 50e4424b1a64a9031f72bffab3556cba8ca18aea /engines | |
parent | c80bc8cbe0b02c8cd4ced475e395aadc5a06158f (diff) | |
download | scummvm-rg350-1e2d292eb4c9e2dc8a5b209d7d2e726e15f43ce9.tar.gz scummvm-rg350-1e2d292eb4c9e2dc8a5b209d7d2e726e15f43ce9.tar.bz2 scummvm-rg350-1e2d292eb4c9e2dc8a5b209d7d2e726e15f43ce9.zip |
WAGE: Finally fix input text behavior
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/wage.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 12f4262965..5ea1e3b314 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() { |