From 787a57c12b343d4d70a85beef05e934b9e9b42cc Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 1 Aug 2016 21:19:48 -0500 Subject: [PATCH] Fix track repair selection placement --- addons/repair/functions/fnc_addRepairActions.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/repair/functions/fnc_addRepairActions.sqf b/addons/repair/functions/fnc_addRepairActions.sqf index 1a9055d3e2..9739adedfe 100644 --- a/addons/repair/functions/fnc_addRepairActions.sqf +++ b/addons/repair/functions/fnc_addRepairActions.sqf @@ -132,9 +132,9 @@ _processedHitpoints = []; // Tracks should always be unique if (_hitpoint in _processedHitpoints) exitWith {TRACE_3("Duplicate Track",_hitpoint,_forEachIndex,_selection);}; if (_hitpoint == "HitLTrack") then { - _position = [-1.75, 0, -1.75]; + _position = compile format ["private _return = _target selectionPosition ['%1', 'HitPoints']; _return set [1, 0]; _return", _selection]; } else { - _position = [1.75, 0, -1.75]; + _position = compile format ["private _return = _target selectionPosition ['%1', 'HitPoints']; _return set [1, 0]; _return", _selection]; }; TRACE_4("Adding RepairTrack",_hitpoint,_forEachIndex,_selection,_text); _condition = {[_this select 1, _this select 0, _this select 2 select 0, "RepairTrack"] call DFUNC(canRepair)};