diff options
author | uruk | 2013-08-17 13:45:15 +0200 |
---|---|---|
committer | uruk | 2013-08-17 13:45:15 +0200 |
commit | 84bf98c9e5bd0d2b3a50f753714852e6d356d985 (patch) | |
tree | a5d9498e5fa4aa3c4fe9367d16f1f13aacfe629e | |
parent | 27d7ae56a629f308e605b97988f4ed4d8e0a22bc (diff) | |
download | scummvm-rg350-84bf98c9e5bd0d2b3a50f753714852e6d356d985.tar.gz scummvm-rg350-84bf98c9e5bd0d2b3a50f753714852e6d356d985.tar.bz2 scummvm-rg350-84bf98c9e5bd0d2b3a50f753714852e6d356d985.zip |
AVALANCHE: Repair Avalot::handleKeyDown(), add comments to parser.h.
-rw-r--r-- | engines/avalanche/avalot.cpp | 2 | ||||
-rw-r--r-- | engines/avalanche/parser.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/avalanche/avalot.cpp b/engines/avalanche/avalot.cpp index 229159fafe..3069c8aef9 100644 --- a/engines/avalanche/avalot.cpp +++ b/engines/avalanche/avalot.cpp @@ -107,7 +107,7 @@ void Avalot::handleKeyDown(Common::Event &event) { case Common::KEYCODE_HOME: case Common::KEYCODE_END: case Common::KEYCODE_KP5: - if (_vm->_gyro->alive) { + if (_vm->_gyro->alive && _vm->_gyro->dna.avvy_is_awake) { _vm->_trip->handleMoveKey(event); // Fallthroughs are intended. _vm->_lucerna->showrw(); if (_vm->_gyro->demo) diff --git a/engines/avalanche/parser.h b/engines/avalanche/parser.h index 6b9240011c..cac8aa22b7 100644 --- a/engines/avalanche/parser.h +++ b/engines/avalanche/parser.h @@ -35,9 +35,9 @@ class AvalancheEngine; class Parser { public: - Common::String _inputText; + Common::String _inputText; // Original name: current Common::String _inputTextBackup; - byte _inputTextPos; + byte _inputTextPos; // Original name: curpos bool _quote; // 66 or 99 next? byte _leftMargin; bool _cursorState; |