mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Common - Fix canDig returning non-bool (#7516)
This commit is contained in:
parent
f460eca428
commit
dd7ae389f9
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user