mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Dragging - Fix mass synchronization (#8071)
* Dragging - Fix mass synchronization * Cleanup redundant argument
This commit is contained in:
parent
24b1a71fbb
commit
6522dba87e
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user