mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Didn't need that isNil check, anyway
This commit is contained in:
parent
a9511936fd
commit
43c9444fb8
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user