The online racing simulator
Get the Final Qualify result
(3 posts, started )
Get the Final Qualify result
Hello everyone...

When i receive a ISP_STA with QualifyfinishedCount >= QualifyCarCount,
i request a ISP_RES packet, so the server will send me all Result packet, but can happen under specific condition that a car will be able to make another FinalResult, and if is time beat another car time, ISP_RES for all car that change position will be send again.

My question here is not how to get result, this is not a probleme, they exist many way, im just pointing one way here. the point is during a qualify i don't know when to stop the race, i mean how i can be sure is really the Final result...

I see some very complicated solution, but i don't feel my idea are great... so im asking for other idea hope you can light me
Fastes solution i can think of now is:

((Worst Lap + QualifyTime)-GTHTime) < 0 == Qualify End

<?php 
onQualTimeEnd
() {
  while (
carsActive) {
    foreach (
activeCar as c) {
      if (
c[time] >= worestTime)
        
removeActiveCar(c);
    }
  }
}
?>


Get the Final Qualify result
(3 posts, started )
FGED GREDG RDFGDR GSFDG