Lap times are better at differenciating '4' from '1' and the tyres are less suceptible to be saved in DB with outragious numbers of laps

This commit is contained in:
2023-05-18 11:57:32 +02:00
parent b7676b90c2
commit 417cb7d8eb
3 changed files with 70 additions and 13 deletions
+4
View File
@@ -242,6 +242,10 @@ namespace Test_Merge
mainResults.Add(data);
DriverDataLogs[i].Add(data);
//Tries to fix the tyres
if (data.CurrentTyre.NumberOfLaps > DriverDataLogs[i][DriverDataLogs[i].Count - 2].CurrentTyre.NumberOfLaps + 3)
data.CurrentTyre.NumberOfLaps = DriverDataLogs[i][DriverDataLogs[i].Count - 2].CurrentTyre.NumberOfLaps + 1;
if (data.Position != -1 && DriverDataLogs[i].Count > 1)
{
//Checking if its a new lap