Skip to content

Commit

Permalink
SHERLOCK: Fix animation/growing rate of EA logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Torbjörn Andersson committed Jun 7, 2015
1 parent 38b3ab4 commit a07cfe1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions engines/sherlock/scalpel/tsage/logo.cpp
Expand Up @@ -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())
Expand Down

0 comments on commit a07cfe1

Please sign in to comment.