Common - Fix canDig returning non-bool (#7516)

This commit is contained in:
PabstMirror 2020-02-08 19:43:42 -06:00 committed by GitHub
parent f460eca428
commit dd7ae389f9

View File

@ -31,7 +31,7 @@ private _surfaceDust = getNumber (_config >> "dust");
TRACE_2("Surface",_surfaceType,_surfaceDust);
if (isNumber (_config >> "ACE_canDig")) then {
getNumber (_config >> "ACE_canDig") // return
(getNumber (_config >> "ACE_canDig")) == 1 // return
} else {
!(_surfaceType in DIG_SURFACE_BLACKLIST) && {(_surfaceDust >= 0.1) || {_surfaceType in DIG_SURFACE_WHITELIST}} // return
};