diff options
author | Marisa-Chan | 2014-11-20 14:02:08 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-11-20 14:02:08 +0600 |
commit | d5f7a1dc03f2a38774ad1c8dd6741bb9c6fb9848 (patch) | |
tree | 6007853460b6b2f7b254a34ddfc03a1bffc80534 /engines/zvision/scripting/controls/lever_control.cpp | |
parent | 03d33e82bc15100584bec38cfa3d877a4882bcab (diff) | |
download | scummvm-rg350-d5f7a1dc03f2a38774ad1c8dd6741bb9c6fb9848.tar.gz scummvm-rg350-d5f7a1dc03f2a38774ad1c8dd6741bb9c6fb9848.tar.bz2 scummvm-rg350-d5f7a1dc03f2a38774ad1c8dd6741bb9c6fb9848.zip |
ZVISION: Implement forgotten setVenus for controls
Diffstat (limited to 'engines/zvision/scripting/controls/lever_control.cpp')
-rw-r--r-- | engines/zvision/scripting/controls/lever_control.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/scripting/controls/lever_control.cpp b/engines/zvision/scripting/controls/lever_control.cpp index 9b665ff033..a9836b388e 100644 --- a/engines/zvision/scripting/controls/lever_control.cpp +++ b/engines/zvision/scripting/controls/lever_control.cpp @@ -141,6 +141,8 @@ void LeverControl::parseLevFile(const Common::String &fileName) { _hotspotDelta.x = x; _hotspotDelta.y = y; + } else if (param.matchString("venus_id", true)) { + _venus_id = atoi(values.c_str()); } else { uint frameNumber; uint x, y; @@ -191,6 +193,7 @@ bool LeverControl::onMouseDown(const Common::Point &screenSpacePos, const Common return false; if (_frameInfo[_currentFrame].hotspot.contains(backgroundImageSpacePos)) { + setVenus(); _mouseIsCaptured = true; _lastMousePos = backgroundImageSpacePos; } |