mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 10:58:01 +00:00
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
This commit is contained in:
parent
4297ccc964
commit
f18132f5b8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user