From 1b2691ff1c66400610d8313b28770ee479927f3a Mon Sep 17 00:00:00 2001 From: ulteq <ulteq@web.de> Date: Mon, 13 Apr 2015 21:17:30 +0200 Subject: [PATCH] Fixed incorrect calculation of the scope adjustment limits --- addons/scopes/functions/fnc_adjustScope.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/scopes/functions/fnc_adjustScope.sqf b/addons/scopes/functions/fnc_adjustScope.sqf index aab44cc1d9..5daed4b65e 100644 --- a/addons/scopes/functions/fnc_adjustScope.sqf +++ b/addons/scopes/functions/fnc_adjustScope.sqf @@ -65,7 +65,7 @@ if (_majorStep) then { _elevation = round(_elevation * 10) / 10; _windage = round(_windage * 10) / 10; -if (_elevation < _maxVertical select 0 or _elevation > _maxVertical select 1) exitWith {false}; +if ((_elevation + _zero) < _maxVertical select 0 or (_elevation + _zero) > _maxVertical select 1) exitWith {false}; if (_windage < _maxHorizontal select 0 or _windage > _maxHorizontal select 1) exitWith {false}; [_unit, _elevation, _windage, _zero] call FUNC(applyScopeAdjustment);