diff options
author | Max Horn | 2003-03-09 02:41:35 +0000 |
---|---|---|
committer | Max Horn | 2003-03-09 02:41:35 +0000 |
commit | 0d0c25d76452b13d53d93b0d4054bf0cd78435f8 (patch) | |
tree | f2169066cc197d6fac38dd033ffbe32d742344ff /scumm | |
parent | b1fe351a51a61a1d8c83450c73397bbb4980738d (diff) | |
download | scummvm-rg350-0d0c25d76452b13d53d93b0d4054bf0cd78435f8.tar.gz scummvm-rg350-0d0c25d76452b13d53d93b0d4054bf0cd78435f8.tar.bz2 scummvm-rg350-0d0c25d76452b13d53d93b0d4054bf0cd78435f8.zip |
rest of patch #655594: Handling Y/N questions
svn-id: r6784
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/scummvm.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 045c3fdedd..d718e7f29e 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -1534,7 +1534,12 @@ void Scumm::waitForTimer(int msec_delay) { resourceStats(); else _keyPressed = event.kbd.ascii; // Normal key press, pass on to the game. - } else + } else if (event.kbd.flags & OSystem::KBD_ALT) { + // The result must be 273 for Alt-W + // because that's what MI2 looks for in + // its "instant win" cheat. + _keyPressed = event.kbd.keycode + 154; + } else _keyPressed = event.kbd.ascii; // Normal key press, pass on to the game. break; |