diff options
author | Eugene Sandulenko | 2016-01-04 11:11:04 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-01-04 11:11:04 +0100 |
commit | 21dae458ea4f9629da371fd554e4018c58e73ddb (patch) | |
tree | ac144746621eb4e68f81b6cf4f8959492f5044b2 | |
parent | b38646790386fcc107431c286a907d1ccd0e525a (diff) | |
download | scummvm-rg350-21dae458ea4f9629da371fd554e4018c58e73ddb.tar.gz scummvm-rg350-21dae458ea4f9629da371fd554e4018c58e73ddb.tar.bz2 scummvm-rg350-21dae458ea4f9629da371fd554e4018c58e73ddb.zip |
WAGE: Properly print out input text on game events
-rw-r--r-- | engines/wage/wage.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp index 26785b5993..fa00618014 100644 --- a/engines/wage/wage.cpp +++ b/engines/wage/wage.cpp @@ -169,7 +169,6 @@ void WageEngine::processEvents() { break; case Common::KEYCODE_RETURN: - _gui->appendText(_inputText); processTurn(&_inputText, NULL); _inputText = ""; _gui->drawInput(); @@ -205,6 +204,11 @@ void WageEngine::setMenu(String soundName) { } void WageEngine::appendText(String &str) { + if (_inputText.size()) + _gui->appendText(_inputText); + + _inputText = ""; + _gui->appendText(str); } |