scopes: switch throttledPublicVariable by setVariablePublic

This commit is contained in:
Nicolás Badano 2015-02-12 12:21:46 -03:00
parent a3dc1df109
commit 4a70d16f95
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ _zeroing set [1, (round (((_zeroing select 1) + (_this select 2)) * 10)) / 10];
// Change the adjustment array
_adjustment set [_weaponIndex, _zeroing];
[_unit, QGVAR(Adjustment), 0.5] call EFUNC(common,throttledPublicVariable);
[_unit, QGVAR(Adjustment), _adjustment, 0.5] call EFUNC(common,setVariablePublic);
playSound (["ACE_Scopes_Click_1", "ACE_Scopes_Click_2", "ACE_Scopes_Click_3"] select floor random 3);

View File

@ -20,7 +20,7 @@ _adjustment = ACE_player getVariable QGVAR(Adjustment);
if (isNil "_adjustment") then {
_adjustment = [[0,0], [0,0], [0,0]];
ACE_player setVariable [QGVAR(Adjustment), _adjustment];
[ACE_player, QGVAR(Adjustment), 0.5] call EFUNC(common,throttledPublicVariable);
[ACE_player, QGVAR(Adjustment), _adjustment, 0.5] call EFUNC(common,setVariablePublic);
};
if (isNil QGVAR(Optics)) then {
@ -33,7 +33,7 @@ _newOptics = [_player] call FUNC(getOptics);
// The optic for this weapon changed, set adjustment to zero
if !((_adjustment select _foreachindex) isEqualTo [0,0]) then {
_adjustment set [_forEachIndex, [0,0]];
[ACE_player, QGVAR(Adjustment), 0.5] call EFUNC(common,throttledPublicVariable);
[ACE_player, QGVAR(Adjustment), _adjustment, 0.5] call EFUNC(common,setVariablePublic);
};
};
} forEach GVAR(Optics);