fix finish round display
This commit is contained in:
parent
b25f433914
commit
3a1cae66a9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue