Skip to content

Commit bc0b897

Browse files
committed
use tolerance when checking parameter values of already saved tiles
1 parent 090bde9 commit bc0b897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RockCollect/Workflow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private static string CheckFloat(Dictionary<string, string> strings, string key,
232232
try { v = float.Parse(strings[key]); }
233233
catch (FormatException) { return $"value \"{strings[key]}\" for {key} not a valid float"; }
234234

235-
if (v == expected) return null;
235+
if (Math.Abs(v - expected) < 0.0001) return null;
236236

237237
return $"expected {expected} for {key}, got {v}";
238238
}

0 commit comments

Comments
 (0)