diff options
author | RichieSams | 2013-09-25 02:30:02 -0500 |
---|---|---|
committer | RichieSams | 2013-09-25 02:30:02 -0500 |
commit | d8bee6be1388167b46811abfbec4102cc768df52 (patch) | |
tree | fd0b6a5e4d5ab2a1936969c0489fcfed2a72fb81 | |
parent | dfb37fb2f0f38b489d15df56ae71b261d0c0229c (diff) | |
download | scummvm-rg350-d8bee6be1388167b46811abfbec4102cc768df52.tar.gz scummvm-rg350-d8bee6be1388167b46811abfbec4102cc768df52.tar.bz2 scummvm-rg350-d8bee6be1388167b46811abfbec4102cc768df52.zip |
ZVISION: Set the state value at each frame of a return animation
Some Puzzles trigger off the intermediate frames
-rw-r--r-- | engines/zvision/lever_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/lever_control.cpp b/engines/zvision/lever_control.cpp index 7f0cd401b2..f3d369fbfb 100644 --- a/engines/zvision/lever_control.cpp +++ b/engines/zvision/lever_control.cpp @@ -260,7 +260,6 @@ bool LeverControl::process(uint32 deltaTimeInMillis) { if (_returnRoutesCurrentProgress == _frameInfo[_currentFrame].returnRoute.end()) { _isReturning = false; _currentFrame = _returnRoutesCurrentFrame; - _engine->getScriptManager()->setStateValue(_key, _currentFrame); return false; } @@ -271,6 +270,7 @@ bool LeverControl::process(uint32 deltaTimeInMillis) { _returnRoutesCurrentFrame--; } + _engine->getScriptManager()->setStateValue(_key, _returnRoutesCurrentFrame); renderFrame(_returnRoutesCurrentFrame); } } |