diff options
author | Peter Kohaut | 2019-02-11 20:57:57 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-02-11 22:48:55 +0100 |
commit | 6854ea3ddd83798a9045307763bbb346d8a1736b (patch) | |
tree | 14fefc869658b53c4b2ee62b37fc04735508c13b /engines/bladerunner/slice_animations.cpp | |
parent | b14fbaa72b3218862a533dd7f7c0e97e1bed4df7 (diff) | |
download | scummvm-rg350-6854ea3ddd83798a9045307763bbb346d8a1736b.tar.gz scummvm-rg350-6854ea3ddd83798a9045307763bbb346d8a1736b.tar.bz2 scummvm-rg350-6854ea3ddd83798a9045307763bbb346d8a1736b.zip |
BLADERUNNER: Improved time management
This should fix thi issue with freezing actors after loading save game,
but works on new saves only. Game was not paused before saving
and wrong timer value got saved.
Diffstat (limited to 'engines/bladerunner/slice_animations.cpp')
-rw-r--r-- | engines/bladerunner/slice_animations.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/bladerunner/slice_animations.cpp b/engines/bladerunner/slice_animations.cpp index 274d39fc9f..b180e84ac0 100644 --- a/engines/bladerunner/slice_animations.cpp +++ b/engines/bladerunner/slice_animations.cpp @@ -23,6 +23,7 @@ #include "bladerunner/slice_animations.h" #include "bladerunner/bladerunner.h" +#include "bladerunner/time.h" #include "common/debug.h" #include "common/file.h" @@ -182,7 +183,7 @@ void *SliceAnimations::getFramePtr(uint32 animation, uint32 frame) { if (!_pages[page]._data) error("Unable to locate page %d for animation %d frame %d", page, animation, frame); - _pages[page]._lastAccess = _vm->_system->getMillis(); + _pages[page]._lastAccess = _vm->_time->currentSystem(); return (byte *)_pages[page]._data + pageOffset; } |