Fixed incorrect calculation of the scope adjustment limits

This commit is contained in:
ulteq 2015-04-13 21:17:30 +02:00
parent 9893d940df
commit 1b2691ff1c

View File

@ -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);