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:
@@ -60,6 +60,11 @@ namespace Test_Merge
|
||||
laps = 0;
|
||||
}
|
||||
//tyreZone.Save(Reader.DEBUG_DUMP_FOLDER + "Tyre" + type + "Laps" + laps + '#' + rnd.Next(0, 1000) + ".png");
|
||||
|
||||
//71 is the most laps an f1 race is ever going to have (mexico)
|
||||
if (laps > 75)
|
||||
laps = 0;
|
||||
|
||||
return new Tyre(type, laps);
|
||||
}
|
||||
/// <summary>
|
||||
@@ -73,8 +78,8 @@ namespace Test_Merge
|
||||
int height = bmp.Height / 2;
|
||||
Color limitColor = Color.FromArgb(0x50, 0x50, 0x50);
|
||||
Color currentColor = Color.FromArgb(0, 0, 0);
|
||||
|
||||
Size newWindowSize = new Size(bmp.Height - Convert.ToInt32((float)bmp.Height / 100f * 25f), bmp.Height - Convert.ToInt32((float)bmp.Height / 100f * 35f));
|
||||
//25F
|
||||
Size newWindowSize = new Size(bmp.Height - Convert.ToInt32((float)bmp.Height / 100f * 25f), bmp.Height - Convert.ToInt32((float)bmp.Height / 100f * 35f));
|
||||
|
||||
while (currentColor.R <= limitColor.R && currentColor.G <= limitColor.G && currentColor.B <= limitColor.B && currentPosition > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user