aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche/parser.cpp')
-rw-r--r--engines/avalanche/parser.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/avalanche/parser.cpp b/engines/avalanche/parser.cpp
index 615f4a4d54..2457354e17 100644
--- a/engines/avalanche/parser.cpp
+++ b/engines/avalanche/parser.cpp
@@ -34,6 +34,13 @@ Parser::Parser(AvalancheEngine *vm) {
_vm = vm;
}
+void Parser::init() {
+ _leftMargin = 0;
+ if (!_inputText.empty())
+ _inputText.clear();
+ _inputTextPos = 0;
+}
+
void Parser::handleInputText(const Common::Event &event) {
byte inChar = event.kbd.ascii;
if (_vm->_dropdown->ddm_o.menunow) {