07.12.2016, 13:45
Even though I noticed it I forgot to comment about it. It is the current checkpoint, don't add 1 to cp.
Now that I think again about it when both players are at the same checkpoint, you should check the distance of the next checkpoint (if exists) - it is the only exception.
Now that I think again about it when both players are at the same checkpoint, you should check the distance of the next checkpoint (if exists) - it is the only exception.