aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/draci/animation.cpp')
-rw-r--r--engines/draci/animation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index ea310c1bb6..3121cc2a40 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -38,6 +38,7 @@ Animation::Animation(DraciEngine *vm, int index) : _vm(vm) {
_playing = false;
_looping = false;
_paused = false;
+ _canBeQuick = false;
_tick = _vm->_system->getMillis();
_currentFrame = 0;
_hasChangedFrame = true;
@@ -95,7 +96,8 @@ void Animation::nextFrame(bool force) {
const Drawable *frame = getConstCurrentFrame();
Surface *surface = _vm->_screen->getSurface();
- if (force || (_tick + frame->getDelay() <= _vm->_system->getMillis())) {
+ if (force || (_tick + frame->getDelay() <= _vm->_system->getMillis()) ||
+ _canBeQuick && _vm->_game->getEnableQuickHero() && _vm->_game->getWantQuickHero()) {
// If we are at the last frame and not looping, stop the animation
// The animation is also restarted to frame zero
if ((_currentFrame == getFrameCount() - 1) && !_looping) {