Didn't need that isNil check, anyway

This commit is contained in:
VKing 2016-01-20 15:51:07 +01:00
parent a9511936fd
commit 43c9444fb8

View File

@ -21,7 +21,7 @@ private _dlgRangefinder = uiNamespace getVariable ["ACE_dlgRangefinder", display
private _distance = parseNumber ctrlText (_dlgRangefinder displayCtrl 151); private _distance = parseNumber ctrlText (_dlgRangefinder displayCtrl 151);
if (isNil "_distance" || {_distance == 0}) then { if (_distance == 0) then {
_distance = _this call EFUNC(common,getTargetDistance); _distance = _this call EFUNC(common,getTargetDistance);
} else { } else {
if (_distance > _maxDistance) then { if (_distance > _maxDistance) then {