Fix Fall-of-Shot units being inverted

This commit is contained in:
VKing 2015-04-05 22:16:47 +02:00
parent 26fb06f774
commit 8ad202b039

View File

@ -15,8 +15,8 @@ _inclinationP2 = _directionP2 select 1;
private ["_abscissa", "_ordinate", "_applicate"];
_abscissa = _distanceP1 * sin (_azimuthP1 - _azimuthP2);
_ordinate = _distanceP1 * cos (_inclinationP1 - _inclinationP2) - _distanceP2 * cos (_azimuthP1 - _azimuthP2);
_abscissa = _distanceP1 * cos (_inclinationP1 - _inclinationP2) - _distanceP2 * cos (_azimuthP1 - _azimuthP2);
_ordinate = _distanceP1 * sin (_azimuthP1 - _azimuthP2);
_applicate = (sin _inclinationP2 * _distanceP2) - (sin _inclinationP1 * _distanceP1);
if (_distanceP1 < -999 || {_distanceP2 < -999}) exitWith {