Reworked cleaning of the LapTimes
This commit is contained in:
+3
-5
@@ -97,17 +97,15 @@ namespace Test_Merge
|
||||
//result.Name = (string)await (w as DriverNameWindow).DecodePng(driverList);
|
||||
result.Name = "Unknown";
|
||||
if (w is DriverDrsWindow)
|
||||
//result.DRS = (bool)await (w as DriverDrsWindow).DecodePng();
|
||||
result.DRS = false;
|
||||
result.DRS = (bool)await (w as DriverDrsWindow).DecodePng();
|
||||
if (w is DriverGapToLeaderWindow)
|
||||
//result.GapToLeader = (int)await (w as DriverGapToLeaderWindow).DecodePng();
|
||||
result.GapToLeader = 0;
|
||||
if (w is DriverLapTimeWindow)
|
||||
//result.LapTime = (int)await (w as DriverLapTimeWindow).DecodePng();
|
||||
result.LapTime = 0;
|
||||
result.LapTime = (int)await (w as DriverLapTimeWindow).DecodePng();
|
||||
//result.LapTime = 0;
|
||||
if (w is DriverPositionWindow)
|
||||
result.Position = (int)await (w as DriverPositionWindow).DecodePng();
|
||||
//result.Position = 0;
|
||||
if (w is DriverSectorWindow)
|
||||
{
|
||||
sectorCount++;
|
||||
|
||||
Reference in New Issue
Block a user