mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed incorrect calculation of the scope adjustment limits
This commit is contained in:
parent
9893d940df
commit
1b2691ff1c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user