aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/input.cpp
diff options
context:
space:
mode:
authorMax Horn2007-06-23 16:05:38 +0000
committerMax Horn2007-06-23 16:05:38 +0000
commitf18132f5b83495510eb5cf52a69d0cd265094f00 (patch)
tree0e54fd7eb3d71e796d4f4600c03f8359efebeb1e /engines/scumm/input.cpp
parent4297ccc96481872e9b47428c5ed36d6db0a450de (diff)
downloadscummvm-rg350-f18132f5b83495510eb5cf52a69d0cd265094f00.tar.gz
scummvm-rg350-f18132f5b83495510eb5cf52a69d0cd265094f00.tar.bz2
scummvm-rg350-f18132f5b83495510eb5cf52a69d0cd265094f00.zip
Simplify code: Since processInput() always overwrite the value of lastKeyHit if KEY_ALL_SKIP is seen, we can never encounter KEY_ALL_SKIP at this spot
svn-id: r27673
Diffstat (limited to 'engines/scumm/input.cpp')
-rw-r--r--engines/scumm/input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index ef27937976..5bb5fd80b7 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -413,7 +413,7 @@ void ScummEngine_v7::processKeyboard(Common::KeyState lastKeyHit) {
// On WinCE we've also got one special for skipping cutscenes or dialog, whatever is appropriate
// Since _smushActive is not a member of the base case class ScummEngine::, we detect here if we're
// playing a cutscene and skip it; else we forward the keystroke through to ScummEngine::processInput.
- if (cutsceneExitKeyEnabled && (lastKeyHit.ascii == KEY_ALL_SKIP || lastKeyHit.keycode == Common::KEYCODE_ESCAPE)) {
+ if (cutsceneExitKeyEnabled && lastKeyHit.keycode == Common::KEYCODE_ESCAPE) {
// FIXME: I do not quite understand why this code behaves differently on WinCE ?!?
int bail = 1;
if (_smushActive) {