Skip to content

Commit

Permalink
Common - Fix canDig returning non-bool (acemod#7516)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Feb 9, 2020
1 parent f460eca commit dd7ae38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_canDig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

0 comments on commit dd7ae38

Please sign in to comment.