From 283496747a44125c9167bb07ad4207466c0ed114 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Mon, 13 Feb 2023 22:49:58 -0600 Subject: [PATCH] Update canDig for new ace_common_canDigSurfaces hash --- addons/functions/functions/fnc_canDig.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/functions/functions/fnc_canDig.sqf b/addons/functions/functions/fnc_canDig.sqf index 4035c3b5..02d5a50e 100644 --- a/addons/functions/functions/fnc_canDig.sqf +++ b/addons/functions/functions/fnc_canDig.sqf @@ -40,5 +40,9 @@ TRACE_2("Surface",_surfaceType,_surfaceDust); if (isNumber (_config >> "ACE_canDig")) then { (getNumber (_config >> "ACE_canDig")) == 1 // Return } else { - !(_surfaceType in DIG_SURFACE_BLACKLIST) && {(_surfaceDust >= 0.1) || {_surfaceType in DIG_SURFACE_WHITELIST}} // Return + if (!isNil "ace_common_canDigSurfaces") then { + ace_common_canDigSurfaces getOrDefault [_surfaceType, (_surfaceDust >= 0.1), true] // return (new ace) + } else { + !(_surfaceType in DIG_SURFACE_BLACKLIST) && {(_surfaceDust >= 0.1) || {_surfaceType in DIG_SURFACE_WHITELIST}} // Return (old ace) + }; };