Increased readability to doSpallMomentum

This commit is contained in:
lambdatiger 2024-01-09 00:54:11 -06:00
parent 23d58c94b3
commit 601083bce3

View File

@ -70,8 +70,11 @@ if (terrainIntersectASL [_lPosASL vectorAdd _unitStep, _lPosASL]) exitWith {
for "_i" from 1 to 20 do for "_i" from 1 to 20 do
{ {
private _nPos = _spallPos vectorAdd _unitStep; private _nPos = _spallPos vectorAdd _unitStep;
if (!lineIntersects [_spallPos, _nPos]) then { _spallPos = _nPos vectorAdd _unitStep; break}; if (!lineIntersects [_spallPos, _nPos]) then {
_spallPos = +_nPos; _spallPos = _nPos vectorAdd _unitStep;
break
};
_spallPos = _nPos;
}; };
#ifdef DEBUG_MODE_FULL #ifdef DEBUG_MODE_FULL