Skip to content

Commit

Permalink
FULLPIPE: Fix cheat codes. Bug in original?
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 16, 2013
1 parent 914535a commit 79dd327
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engines/fullpipe/fullpipe.cpp
Expand Up @@ -260,7 +260,7 @@ void FullpipeEngine::updateEvents() {
}

ex = new ExCommand(0, 17, 36, 0, 0, 0, 1, 0, 0, 0);
ex->_keyCode = 83;
ex->_keyCode = event.kbd.keycode;
ex->_excFlags |= 3;
ex->handle();
break;
Expand Down
1 change: 0 additions & 1 deletion engines/fullpipe/input.cpp
Expand Up @@ -165,7 +165,6 @@ void FullpipeEngine::defHandleKeyDown(int key) {
return;
}

warning("%d %d", _currentCheat, _currentCheatPos);
if (toupper(key) != input_cheats[_currentCheat][_currentCheatPos]) {
_currentCheat = -1;

Expand Down
3 changes: 2 additions & 1 deletion engines/fullpipe/scenes.cpp
Expand Up @@ -731,6 +731,8 @@ int global_messageHandler1(ExCommand *cmd) {
}
break;
case 36: // keydown
g_fullpipe->defHandleKeyDown(cmd->_keyCode);

switch (cmd->_keyCode) {
case '\x1B': // ESC
if (g_fullpipe->_currentScene) {
Expand Down Expand Up @@ -768,7 +770,6 @@ int global_messageHandler1(ExCommand *cmd) {
cmd->_messageKind = 0;
break;
default:
g_fullpipe->defHandleKeyDown(cmd->_keyCode);
break;
}
break;
Expand Down

0 comments on commit 79dd327

Please sign in to comment.