Skip to content

Commit

Permalink
Scopes - Allow 0.05 mrad increments
Browse files Browse the repository at this point in the history
  • Loading branch information
ulteq authored Dec 2, 2017
1 parent fd8ea42 commit 9c386f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/scopes/functions/fnc_adjustScope.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ if (_majorStep) then {
};
};

_elevation = round(_elevation * 10) / 10;
_windage = round(_windage * 10) / 10;
_elevation = round(_elevation * 20) / 20;
_windage = round(_windage * 20) / 20;

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};
Expand Down

0 comments on commit 9c386f9

Please sign in to comment.