fix finish round display

This commit is contained in:
interfisch 2025-03-22 16:01:34 +01:00
parent b25f433914
commit 3a1cae66a9

View file

@ -322,6 +322,8 @@ func calculate_steering(delta:float):
func getRound(): func getRound():
var i=getNextCPindex()/checkpoints.size() var i=getNextCPindex()/checkpoints.size()
if getNextCPindex()==-1: #all checkpoints collected
i=checkpoints.size()-1
return i return i