Skip to content

Commit

Permalink
WAGE: Finally fix input text behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Feb 14, 2016
1 parent c80bc8c commit 1e2d292
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions engines/wage/wage.cpp
Expand Up @@ -172,6 +172,7 @@ void WageEngine::processEvents() {

processTurn(&_inputText, NULL);
_inputText = "";
_gui->appendText("");
break;

default:
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 1e2d292

Please sign in to comment.