I want to describe my problems with the current node system and I see that LFS itselvs has some same problems because the positions are often for one moment wrong:
I use a realtime position calculation.
So I change the lap number and Node with every MCI packet. here is "problem" number one I have to do
if (currentNode <= finishLineNode)
currentNode += numNodes;
to have a constant higher node from start to finish line.
If I need a position I sort the players first with the lap and if thats equal with the Nodes. So here problem number two. Sometimes a lap increase comes before finishLineNode, sometimes on it and another time after the node so a second correction
[SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][SIZE=2] nearBeforeFinishLine = currentNode <= finishLineNode && currentNode + 10 >= finishLineNode;[/SIZE]
[SIZE=2][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] (!nearBeforeFinishLine)
nodePositions[i].lap++;
[/SIZE][/SIZE]
Thats nearly save for me with the positions but it could have faster the same
I only want to mentione it now, if you don´t want to change it I can deal with it

I want to thank you for the changes you did (for me) they are really helpful