From d8bee6be1388167b46811abfbec4102cc768df52 Mon Sep 17 00:00:00 2001 From: RichieSams Date: Wed, 25 Sep 2013 02:30:02 -0500 Subject: ZVISION: Set the state value at each frame of a return animation Some Puzzles trigger off the intermediate frames --- engines/zvision/lever_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3