Prior to sending the !pacelaps command, the program now also gathers the data on which cars are currently on pit road. Any cars on pit road are excluded before continuing on with the existing logic.
A few other small things were fixed, such as adjusting the output messages and adding a sanity check to make sure the user put in a reasonable value for total laps under SC (i.e. they didn't input -8 or something like that).
Fixes #5
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Testing
After updating the logic, an AI race was run to ensure it worked the same as it did before more or less, this time of course excluding cars on pit road.
Description
Prior to sending the
!pacelaps
command, the program now also gathers the data on which cars are currently on pit road. Any cars on pit road are excluded before continuing on with the existing logic.A few other small things were fixed, such as adjusting the output messages and adding a sanity check to make sure the user put in a reasonable value for total laps under SC (i.e. they didn't input -8 or something like that).
Fixes #5
Type of change
Testing
After updating the logic, an AI race was run to ensure it worked the same as it did before more or less, this time of course excluding cars on pit road.