Hotfix
This commit is contained in:
1 parent
417cb7d8eb
commit
96de5485fe
1 file changed
+4
-4
@@ -242,12 +242,12 @@ namespace Test_Merge
|
|||||||
mainResults.Add(data);
|
mainResults.Add(data);
|
||||||
DriverDataLogs[i].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)
|
if (data.Position != -1 && DriverDataLogs[i].Count > 1)
|
||||||
{
|
{
|
||||||
|
//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;
|
||||||
|
|
||||||
//Checking if its a new lap
|
//Checking if its a new lap
|
||||||
//If the third sector is filled but it was'nt the last time, then it means that a new Lap has been started
|
//If the third sector is filled but it was'nt the last time, then it means that a new Lap has been started
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in new issue
Block a user