Incorrect starting positions (odd/even swapped)
I noticed the starting positions are slightly off:
If you start on position 12, you actually have a “better” (=closer to the finish line) position than position 11. If you start on position 1, the car on position 2 is closer to the finish line as well. The same is for ranks 3 vs 4, 5 vs 6, 7 vs 8 and 9 vs 10. In general, all ranks with an even number N are having a slightly better starting position than the rank N-1.
Summary:
- Rank 2 is better than 1
- 4 is better than 3
- 6 is better than 5
- 8 is better than 7
- 10 is better than 9
- 12 is better than 11
While it should be vice-versa for each of these groupings. (e.g. 1 is better than 2, 3 is better than 4, etc.)
Discovered in 8722d43e4158c2b87b94676b0365266e2eda11ea.
After further testing, I noticed this does not always happen. It depends on the direction of the start/finish line.
The bug only occurs if the cars start facing rightwards or upwards. For example, on Ring or Desert Storm. On tracks in which the cars start facing leftwards or downwards, the bug does NOT occur. For example, on Monza or Triangle.
Good catch! :)