Merge pull request #4198 from acemod/UntergrundbewegungPanzerkette

Fix track repair selection placement
This commit is contained in:
commy2 2016-08-02 14:20:51 +02:00 committed by GitHub
commit b9600e661c

View File

@ -132,9 +132,9 @@ _processedHitpoints = [];
// Tracks should always be unique // Tracks should always be unique
if (_hitpoint in _processedHitpoints) exitWith {TRACE_3("Duplicate Track",_hitpoint,_forEachIndex,_selection);}; if (_hitpoint in _processedHitpoints) exitWith {TRACE_3("Duplicate Track",_hitpoint,_forEachIndex,_selection);};
if (_hitpoint == "HitLTrack") then { 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 { } 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); TRACE_4("Adding RepairTrack",_hitpoint,_forEachIndex,_selection,_text);
_condition = {[_this select 1, _this select 0, _this select 2 select 0, "RepairTrack"] call DFUNC(canRepair)}; _condition = {[_this select 1, _this select 0, _this select 2 select 0, "RepairTrack"] call DFUNC(canRepair)};