diff options
author | Torbjörn Andersson | 2015-06-07 18:47:28 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2015-06-07 18:47:28 +0200 |
commit | a07cfe1eb0f31283ead6fc0c27e2d7c92723546f (patch) | |
tree | 5224dfe682e657aeb83775bc108267be9a020a64 /engines/sherlock/scalpel/tsage | |
parent | 38b3ab4bc096b8583ec3f66db8f21e439f26017d (diff) | |
download | scummvm-rg350-a07cfe1eb0f31283ead6fc0c27e2d7c92723546f.tar.gz scummvm-rg350-a07cfe1eb0f31283ead6fc0c27e2d7c92723546f.tar.bz2 scummvm-rg350-a07cfe1eb0f31283ead6fc0c27e2d7c92723546f.zip |
SHERLOCK: Fix animation/growing rate of EA logo
Diffstat (limited to 'engines/sherlock/scalpel/tsage')
-rw-r--r-- | engines/sherlock/scalpel/tsage/logo.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/sherlock/scalpel/tsage/logo.cpp b/engines/sherlock/scalpel/tsage/logo.cpp index 2ac6af2601..ee1fe5f818 100644 --- a/engines/sherlock/scalpel/tsage/logo.cpp +++ b/engines/sherlock/scalpel/tsage/logo.cpp @@ -223,8 +223,15 @@ void Object::update() { Screen &screen = *_vm->_screen; if (_visage.isLoaded()) { - if (isMoving()) - move(); + if (isMoving()) { + uint32 currTime = _vm->_events->getFrameCounter(); + if (_walkStartFrame <= currTime) { + int moveRate = 10; + int frameInc = 60 / moveRate; + _walkStartFrame = currTime + frameInc; + move(); + } + } if (_isAnimating) { if (_frame < _visage.getFrameCount()) |