mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Don't show adjustment or click sound if the adjustment doesn't happen
This commit is contained in:
parent
cea2b55d56
commit
2af3d9e769
@ -32,6 +32,7 @@ if (isNil "_adjustment") then {
|
||||
};
|
||||
|
||||
_adjustmentDifference = (_adjustment select _weaponIndex) vectorDiff [_elevation, _windage, _zero];
|
||||
if (_adjustmentDifference isEqualTo [0,0,0]) exitWith {false}; // Don't coninue if no adjustment is made
|
||||
|
||||
_adjustment set [_weaponIndex, [_elevation, _windage, _zero]];
|
||||
[_unit, QGVAR(Adjustment), _adjustment, 0.5] call EFUNC(common,setVariablePublic);
|
||||
|
Loading…
Reference in New Issue
Block a user