From f18132f5b83495510eb5cf52a69d0cd265094f00 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 23 Jun 2007 16:05:38 +0000 Subject: 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 --- engines/scumm/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm/input.cpp') 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) { -- cgit v1.2.3