[Scummvm-cvs-logs] scummvm master -> a07cfe1eb0f31283ead6fc0c27e2d7c92723546f
eriktorbjorn
eriktorbjorn at telia.com
Sun Jun 7 18:49:35 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a07cfe1eb0 SHERLOCK: Fix animation/growing rate of EA logo
Commit: a07cfe1eb0f31283ead6fc0c27e2d7c92723546f
https://github.com/scummvm/scummvm/commit/a07cfe1eb0f31283ead6fc0c27e2d7c92723546f
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2015-06-07T18:47:28+02:00
Commit Message:
SHERLOCK: Fix animation/growing rate of EA logo
Changed paths:
engines/sherlock/scalpel/tsage/logo.cpp
diff --git a/engines/sherlock/scalpel/tsage/logo.cpp b/engines/sherlock/scalpel/tsage/logo.cpp
index 2ac6af2..ee1fe5f 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())
More information about the Scummvm-git-logs
mailing list