diff options
Diffstat (limited to 'engines/illusions/input.cpp')
-rw-r--r-- | engines/illusions/input.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/illusions/input.cpp b/engines/illusions/input.cpp index 21042dcc1c..712f417a19 100644 --- a/engines/illusions/input.cpp +++ b/engines/illusions/input.cpp @@ -180,8 +180,8 @@ void Input::handleKey(Common::KeyCode key, int mouseButton, bool down) { _newKeys = 0; _newButtons = ~prevButtonStates & _buttonStates; - if ( !down && !isCheatModeActive() ) { - if( _cheatCodeIndex < 7 && key == kCheatCode[_cheatCodeIndex] ) { + if ( !down && !isCheatModeActive()) { + if ( _cheatCodeIndex < 7 && key == kCheatCode[_cheatCodeIndex]) { _cheatCodeIndex++; } else { _cheatCodeIndex = 0; |