diff options
author | richiesams | 2013-08-28 09:10:22 -0500 |
---|---|---|
committer | richiesams | 2013-08-28 16:44:26 -0500 |
commit | b317ea45fed9cdf444bba3b972ff1e12c12717ad (patch) | |
tree | 17088000e72a0f175db831b34bb1ca7069325861 | |
parent | f60b054b490ca13f79f849b5981e15140a239434 (diff) | |
download | scummvm-rg350-b317ea45fed9cdf444bba3b972ff1e12c12717ad.tar.gz scummvm-rg350-b317ea45fed9cdf444bba3b972ff1e12c12717ad.tar.bz2 scummvm-rg350-b317ea45fed9cdf444bba3b972ff1e12c12717ad.zip |
ZVISION: Allow a angle buffer zone on *both* sides of the actual angle
-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 15b0bf771d..08a620f646 100644 --- a/engines/zvision/lever_control.cpp +++ b/engines/zvision/lever_control.cpp @@ -208,7 +208,7 @@ bool LeverControl::onMouseMove(const Common::Point &screenSpacePos, const Common _lastMousePos = backgroundImageSpacePos; for (Common::List<Direction>::iterator iter = _frameInfo[_currentFrame].directions.begin(); iter != _frameInfo[_currentFrame].directions.end(); iter++) { - if (angle >= (int)(*iter).angle - ANGLE_DELTA && angle <= (int)(*iter).angle) { + if (angle >= (int)(*iter).angle - ANGLE_DELTA && angle <= (int)(*iter).angle + ANGLE_DELTA) { _currentFrame = (*iter).toFrame; renderFrame(_currentFrame); break; |