aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2016-07-20 20:18:40 +0100
committerThierry Crozat2016-07-20 20:18:40 +0100
commitabb33e53628ca4c639478911c734bf18af76be1d (patch)
treeaf3f49e3f14c84bc2f172de30ee21a3ae5f608d8
parent8380023c518174dd8ad8ba8fb307abfa0b1bc92f (diff)
downloadscummvm-rg350-abb33e53628ca4c639478911c734bf18af76be1d.tar.gz
scummvm-rg350-abb33e53628ca4c639478911c734bf18af76be1d.tar.bz2
scummvm-rg350-abb33e53628ca4c639478911c734bf18af76be1d.zip
DRASCULA: Fix slight delay when interrupting intro animation
The delay occurred when trying to interrupt the animation while at the start of the first scene with Igor. After the interruption (skipping the intro, return to launcher or quitting ScummVM) it would continue to play the animation for a bit longer than necessary.
-rw-r--r--engines/drascula/animation.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/drascula/animation.cpp b/engines/drascula/animation.cpp
index f672ad3b55..8b3299aaa9 100644
--- a/engines/drascula/animation.cpp
+++ b/engines/drascula/animation.cpp
@@ -116,7 +116,7 @@ void DrasculaEngine::animation_1_1() {
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
break;
- for (int l2 = 0; l2 < 3; l2++)
+ for (int l2 = 0; l2 < 3; l2++) {
for (int l = 0; l < 7; l++) {
copyBackground();
copyBackground(interf_x[l], interf_y[l], 156, 45, 63, 31, drawSurface2, screenSurface);
@@ -129,6 +129,9 @@ void DrasculaEngine::animation_1_1() {
}
if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
break;
+ }
+ if ((term_int == 1) || (getScan() == Common::KEYCODE_ESCAPE) || shouldQuit())
+ break;
for (int l = 0, l2 = 0, p = 0; l < 180; l++) {
copyBackground(0, 0, 320 - l, 0, l, 200, drawSurface3, screenSurface);