Dragging - Fix mass synchronization (#8071)

* Dragging - Fix mass synchronization

* Cleanup redundant argument
This commit is contained in:
jonpas 2021-01-20 21:49:38 +01:00 committed by GitHub
parent 24b1a71fbb
commit 6522dba87e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -84,5 +84,5 @@ if (_target getVariable [QGVAR(isUAV), false]) then {
private _mass = _target getVariable [QGVAR(originalMass), 0];
if (_mass != 0) then {
[QEGVAR(common,setMass), [_target, _mass], _target] call CBA_fnc_targetEvent;
[QEGVAR(common,setMass), [_target, _mass]] call CBA_fnc_globalEvent; // force global sync
};

View File

@ -81,7 +81,7 @@ if (_target getVariable [QGVAR(isUAV), false]) then {
private _mass = _target getVariable [QGVAR(originalMass), 0];
if (_mass != 0) then {
[QEGVAR(common,setMass), [_target, _mass], _target] call CBA_fnc_targetEvent;
[QEGVAR(common,setMass), [_target, _mass]] call CBA_fnc_globalEvent; // force global sync
};
// reset temp direction

View File

@ -79,5 +79,5 @@ private _mass = getMass _target;
if (_mass > 1) then {
_target setVariable [QGVAR(originalMass), _mass, true];
[QEGVAR(common,setMass), [_target, 1e-12], _target] call CBA_fnc_targetEvent;
[QEGVAR(common,setMass), [_target, 1e-12]] call CBA_fnc_globalEvent; // force global sync
};

View File

@ -67,5 +67,5 @@ private _mass = getMass _target;
if (_mass > 1) then {
_target setVariable [QGVAR(originalMass), _mass, true];
[QEGVAR(common,setMass), [_target, 1e-12], _target] call CBA_fnc_targetEvent;
[QEGVAR(common,setMass), [_target, 1e-12]] call CBA_fnc_globalEvent; // force global sync
};