Skip to content

Commit 2de363f

Browse files
Update UnrealDemoScanner.cs
1 parent aba1305 commit 2de363f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

UnrealDemoScanner/UnrealDemoScanner.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10097,9 +10097,9 @@ public static void ProcessPluginMessage(string cmd)
1009710097

1009810098
foreach (var v in CDAngleHistoryAim12List)
1009910099
{
10100-
mir_found = v.tmp[0] == v.tmp[1]
10101-
&& v.tmp[1] == v.tmp[2] &&
10102-
v.tmp[0] == LastSCMD_Angles1[1];
10100+
mir_found = abs(v.tmp[0] - v.tmp[1]) < EPSILON_2
10101+
&& abs(v.tmp[1] - v.tmp[2]) < EPSILON_2 &&
10102+
abs(v.tmp[0] - LastSCMD_Angles1[1]) < EPSILON_2;
1010310103
if (mir_found)
1010410104
break;
1010510105
}

0 commit comments

Comments
 (0)