aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2009-08-02 10:40:48 +0000
committerSven Hesse2009-08-02 10:40:48 +0000
commit87124b1d388ff1294a7f13c0cecc4bee01cf7427 (patch)
tree361add1fa1dcd280f4e10e4d0e08dcadeb704455 /engines/gob
parent1471f0e3ddffeedd7ff10e44ecb252cca1ad4864 (diff)
downloadscummvm-rg350-87124b1d388ff1294a7f13c0cecc4bee01cf7427.tar.gz
scummvm-rg350-87124b1d388ff1294a7f13c0cecc4bee01cf7427.tar.bz2
scummvm-rg350-87124b1d388ff1294a7f13c0cecc4bee01cf7427.zip
Removing _frameWaitLag. It broke normal animation speed in pre-v4 games and didn't even do what it was supposed to in v4+ games anyway. (bug #2830985)
svn-id: r42996
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/util.cpp12
-rw-r--r--engines/gob/util.h1
2 files changed, 2 insertions, 11 deletions
diff --git a/engines/gob/util.cpp b/engines/gob/util.cpp
index 356eb3c643..1a8668b1c2 100644
--- a/engines/gob/util.cpp
+++ b/engines/gob/util.cpp
@@ -45,7 +45,6 @@ Util::Util(GobEngine *vm) : _vm(vm) {
_frameRate = 12;
_frameWaitTime = 0;
_startFrameTime = 0;
- _frameWaitLag = 0;
}
uint32 Util::getTimeKey(void) {
@@ -331,12 +330,10 @@ void Util::setFrameRate(int16 rate) {
_frameRate = rate;
_frameWaitTime = 1000 / rate;
_startFrameTime = getTimeKey();
- _frameWaitLag = 0;
}
void Util::notifyNewAnim() {
_startFrameTime = getTimeKey();
- _frameWaitLag = 0;
}
void Util::waitEndFrame() {
@@ -350,17 +347,12 @@ void Util::waitEndFrame() {
return;
}
- int32 waitTime = _frameWaitTime - _frameWaitLag;
- int32 toWait = waitTime - time;
+ int32 toWait = _frameWaitTime - time;
if (toWait > 0)
delay(toWait);
- int32 now = getTimeKey();
-
- _frameWaitLag = (now - _startFrameTime) - waitTime;
-
- _startFrameTime = now;
+ _startFrameTime = getTimeKey();
}
void Util::setScrollOffset(int16 x, int16 y) {
diff --git a/engines/gob/util.h b/engines/gob/util.h
index 82e2df94de..ef972eb68c 100644
--- a/engines/gob/util.h
+++ b/engines/gob/util.h
@@ -145,7 +145,6 @@ protected:
int16 _frameRate;
int16 _frameWaitTime;
uint32 _startFrameTime;
- int32 _frameWaitLag;
GobEngine *_vm;