Repair - Improve wheel detection for RHS (#3760)

* Repair - Improve backup wheel detection

Fix #3759

* Cleanup
This commit is contained in:
PabstMirror 2016-05-07 16:04:27 -05:00
parent dbe70a7094
commit 2a5ec42148

View File

@ -70,6 +70,8 @@ _wheelHitPointSelections = [];
_bestIndex = -1;
{
if (_x != "") then {
//Filter out things that definitly aren't wheeels (#3759)
if ((toLower (_hitPoints select _forEachIndex)) in ["hitengine", "hitfuel", "hitbody"]) exitWith {TRACE_1("filter",_x)};
_xPos = _vehicle selectionPosition _x;
if (_xPos isEqualTo [0,0,0]) exitWith {};
_xDist = _wheelCenterPos distance _xPos;