mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
WAGE: Finally fix input text behavior
This commit is contained in:
parent
c80bc8cbe0
commit
1e2d292eb4
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user