Update addons/spike/functions/fnc_camera_update.sqf

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
This commit is contained in:
johnb432 2024-08-30 06:40:38 -07:00 committed by GitHub
parent 78e9e6dd88
commit fee64db532
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ if (_hasGimbal) then {
private _offsetY = (_speedModifier * _gimbalSpeedY * _deltaTime * (_up - _down)); private _offsetY = (_speedModifier * _gimbalSpeedY * _deltaTime * (_up - _down));
private _directionToLast = _relativePos; private _directionToLast = _relativePos;
if !(_groundPos isEqualTo [0, 0, 0]) then { if (_groundPos isNotEqualTo [0, 0, 0]) then {
private _lastLogicPos = getPosASLVisual _logic; private _lastLogicPos = getPosASLVisual _logic;
_directionToLast = _cameraPosASL vectorFromTo _groundPos; _directionToLast = _cameraPosASL vectorFromTo _groundPos;
}; };