diff options
Diffstat (limited to 'engines/avalanche/parser.cpp')
-rw-r--r-- | engines/avalanche/parser.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp index 5a23a24e69..5fbc31e594 100644 --- a/engines/avalanche/parser.cpp +++ b/engines/avalanche/parser.cpp @@ -79,6 +79,8 @@ void Parser::handleReturn() { _inputTextBackup = _inputText; _vm->_acci->parse(); _vm->_acci->do_that(); + _inputText.clear(); + wipeText(); } } } @@ -148,4 +150,18 @@ void Parser::drawCursor() { _vm->_trip->getset[fv].remember(bf); } +void Parser::wipeText() { + if (_vm->_gyro->mouse_near_text()) + _vm->_gyro->super_off(); + + cursorOff(); + + _vm->_graphics->drawBar(24, 161, 640, 169, black); // Black out the line of the text. + + _quote = true; + _inputTextPos = 0; + cursorOn(); + _vm->_gyro->super_on(); +} + } // End of namespace Avalanche |