mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Increased readability to doSpallMomentum
This commit is contained in:
parent
23d58c94b3
commit
601083bce3
@ -70,8 +70,11 @@ if (terrainIntersectASL [_lPosASL vectorAdd _unitStep, _lPosASL]) exitWith {
|
||||
for "_i" from 1 to 20 do
|
||||
{
|
||||
private _nPos = _spallPos vectorAdd _unitStep;
|
||||
if (!lineIntersects [_spallPos, _nPos]) then { _spallPos = _nPos vectorAdd _unitStep; break};
|
||||
_spallPos = +_nPos;
|
||||
if (!lineIntersects [_spallPos, _nPos]) then {
|
||||
_spallPos = _nPos vectorAdd _unitStep;
|
||||
break
|
||||
};
|
||||
_spallPos = _nPos;
|
||||
};
|
||||
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
|
Loading…
Reference in New Issue
Block a user