Hotfix
This commit is contained in:
@@ -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