WAGE: Finally fix input text behavior

This commit is contained in:
Eugene Sandulenko 2016-02-12 11:43:44 +01:00
parent c80bc8cbe0
commit 1e2d292eb4

View File

@ -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();
_inputText = "";
}
_gui->appendText(str);
if (_inputText.size())
_inputText = "";
}
void WageEngine::gameOver() {