diff options
author | RichieSams | 2015-01-15 00:40:07 -0600 |
---|---|---|
committer | RichieSams | 2015-01-15 00:41:13 -0600 |
commit | 89f233f4881589b925e871becbf3ec1b08db108e (patch) | |
tree | 261b6fda9c8132a020370057c79fd002167bb490 /engines | |
parent | 4f28cec6ac7ef68df373f6c1139a852150789851 (diff) | |
download | scummvm-rg350-89f233f4881589b925e871becbf3ec1b08db108e.tar.gz scummvm-rg350-89f233f4881589b925e871becbf3ec1b08db108e.tar.bz2 scummvm-rg350-89f233f4881589b925e871becbf3ec1b08db108e.zip |
ZVISION: Set the state value for the lever position during user dragging
Not just during the "returning" animation. Addresses part of bug #6761
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/scripting/controls/lever_control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/zvision/scripting/controls/lever_control.cpp b/engines/zvision/scripting/controls/lever_control.cpp index 249c4c6f9b..0f105b424c 100644 --- a/engines/zvision/scripting/controls/lever_control.cpp +++ b/engines/zvision/scripting/controls/lever_control.cpp @@ -232,6 +232,7 @@ bool LeverControl::onMouseMove(const Common::Point &screenSpacePos, const Common if (angle >= (int)iter->angle - ANGLE_DELTA && angle <= (int)iter->angle + ANGLE_DELTA) { _currentFrame = iter->toFrame; renderFrame(_currentFrame); + _engine->getScriptManager()->setStateValue(_key, _currentFrame); break; } } |