conform isnil checking: laser

This commit is contained in:
Whigital 2020-02-11 23:43:20 +01:00
parent 1def9cbcb7
commit 7fe5401f6a

View File

@ -46,7 +46,7 @@ if (!(_intersects isEqualTo [])) then {
TRACE_3("", _resultPos, _distance, _intersects);
#ifdef DRAW_LASER_INFO
if !(isNil "_resultPos") then {
if (!isNil "_resultPos") then {
private _text = [_distance, 4, 0] call CBA_fnc_formatNumber;
drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\selectover_ca.paa", [0, 1, 0, 1], ASLtoAGL _resultPos, 0.5, 0.5, 0, _text, 0.4, 0.025, "TahomaB"];
drawLine3D [ASLtoAGL _posASL, ASLtoAGL _resultPos, [0,1,0,1]];