aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sequence
diff options
context:
space:
mode:
authorathrxx2019-12-24 18:31:13 +0100
committerathrxx2019-12-30 17:51:34 +0100
commitcb01975aec75c17ba527f99c3988f728afdc714f (patch)
treea32271b2112bc652abe4d4c02b17d1f801e02ca8 /engines/kyra/sequence
parentd5b963a3b997067c874e6fb21445266bc4a1e766 (diff)
downloadscummvm-rg350-cb01975aec75c17ba527f99c3988f728afdc714f.tar.gz
scummvm-rg350-cb01975aec75c17ba527f99c3988f728afdc714f.tar.bz2
scummvm-rg350-cb01975aec75c17ba527f99c3988f728afdc714f.zip
KYRA: (HOF) - fix bug #11289 (Secret potion issue)
- added a missing function that causes keyboard key presses to trigger certain sound effects - improve keyboard responsiveness during idle animations (HOF only)
Diffstat (limited to 'engines/kyra/sequence')
-rw-r--r--engines/kyra/sequence/sequences_v2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/sequence/sequences_v2.cpp b/engines/kyra/sequence/sequences_v2.cpp
index 4c32357684..e9648c08a3 100644
--- a/engines/kyra/sequence/sequences_v2.cpp
+++ b/engines/kyra/sequence/sequences_v2.cpp
@@ -103,7 +103,8 @@ void KyraEngine_v2::processAnimationScript(int allowSkip, int resetChar) {
delay(10, true);
if (skipFlag()) {
- resetSkipFlag();
+ if (!_kbEventSkip || _eventList.front().event.type != Common::EVENT_KEYDOWN)
+ resetSkipFlag();
if (allowSkip)
break;
}