joshjaysalazar / iRacingSafetyCarGenerator

Software to generate custom safety cars during an iRacing race
GNU General Public License v3.0
4 stars 2 forks source link

5 if leader pits pacelaps command fails #10

Closed joshjaysalazar closed 9 months ago

joshjaysalazar commented 9 months ago

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.