Cleanup unused variable (#8074)

This commit is contained in:
Dystopian 2021-01-28 21:14:28 +04:00 committed by GitHub
parent 6522dba87e
commit 4acfc35e77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,8 +59,8 @@
#define MOVE_IN_CODE(command) (_this select 0) command (_this select 1) #define MOVE_IN_CODE(command) (_this select 0) command (_this select 1)
private _fnc_move = { private _fnc_move = {
(_this select 2) params ["_moveInCode", "_moveInParams", "_currentTurret", "_moveBackCode", "_moveBackParams", ["_enabledByAnimationSource", ""]]; (_this select 2) params ["_moveInCode", "_moveInParams", "_currentTurret", "_moveBackCode", "_moveBackParams"];
TRACE_7("fnc_move params",_moveInCode,_moveInParams,_currentTurret,_moveBackCode,_moveBackParams,_enabledByAnimationSource,call {GVAR(frame)=diag_frameno}); TRACE_6("fnc_move params",_moveInCode,_moveInParams,_currentTurret,_moveBackCode,_moveBackParams,call {GVAR(frame)=diag_frameno});
// workaround getting damage when moveOut while vehicle is moving // workaround getting damage when moveOut while vehicle is moving
// also this helps with arma bug when unit is stuck in wrong anim when move in turret with configured enabledByAnimationSource // also this helps with arma bug when unit is stuck in wrong anim when move in turret with configured enabledByAnimationSource
@ -208,7 +208,7 @@ private _cargoNumber = -1;
private _gunnerCompartments = (_turretConfig >> "gunnerCompartments") call BIS_fnc_getCfgData; private _gunnerCompartments = (_turretConfig >> "gunnerCompartments") call BIS_fnc_getCfgData;
TO_COMPARTMENT_STRING(_gunnerCompartments); TO_COMPARTMENT_STRING(_gunnerCompartments);
if (_compartment != _gunnerCompartments) then {breakTo "crewLoop"}; if (_compartment != _gunnerCompartments) then {breakTo "crewLoop"};
_params = [{MOVE_IN_CODE(moveInTurret)}, [_vehicle, _turretPath], _currentTurret, _moveBackCode, _moveBackParams, _enabledByAnimationSource]; _params = [{MOVE_IN_CODE(moveInTurret)}, [_vehicle, _turretPath], _currentTurret, _moveBackCode, _moveBackParams];
_statement = _fnc_move; _statement = _fnc_move;
}; };
_name = getText (_turretConfig >> "gunnerName"); _name = getText (_turretConfig >> "gunnerName");