Skip to content

Commit

Permalink
Merge pull request #132 from PabstMirror/hash
Browse files Browse the repository at this point in the history
Update canDig for new ace_common_canDigSurfaces hash
  • Loading branch information
AdlerSalbei authored Feb 14, 2023
2 parents fb8cbc1 + 2834967 commit 51c8f88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/functions/functions/fnc_canDig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
};

0 comments on commit 51c8f88

Please sign in to comment.