Don't show adjustment or click sound if the adjustment doesn't happen

This commit is contained in:
VKing 2016-01-18 16:16:53 +01:00
parent cea2b55d56
commit 2af3d9e769

View File

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