Fix track repair selection placement

This commit is contained in:
PabstMirror 2016-08-01 21:19:48 -05:00
parent f6eb6a6d66
commit 787a57c12b

View File

@ -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)};